diff --git a/java-dms/README.md b/java-dms/README.md index fdb9f8279ddb..f69635436ff3 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.19.0 + 26.22.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index cd7cc6d2c9f8..75944cd6ad6e 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -954,6 +954,7 @@ public final UnaryCallable deleteMigration * StartMigrationJobRequest request = * StartMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setSkipValidation(true) * .build(); * MigrationJob response = dataMigrationServiceClient.startMigrationJobAsync(request).get(); * } @@ -984,6 +985,7 @@ public final OperationFuture startMigrationJobA * StartMigrationJobRequest request = * StartMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setSkipValidation(true) * .build(); * OperationFuture future = * dataMigrationServiceClient.startMigrationJobOperationCallable().futureCall(request); @@ -1014,6 +1016,7 @@ public final OperationFuture startMigrationJobA * StartMigrationJobRequest request = * StartMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setSkipValidation(true) * .build(); * ApiFuture future = * dataMigrationServiceClient.startMigrationJobCallable().futureCall(request); @@ -1317,6 +1320,8 @@ public final UnaryCallable promoteMigrati * VerifyMigrationJobRequest request = * VerifyMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setMigrationJob(MigrationJob.newBuilder().build()) * .build(); * MigrationJob response = dataMigrationServiceClient.verifyMigrationJobAsync(request).get(); * } @@ -1348,6 +1353,8 @@ public final OperationFuture verifyMigrationJob * VerifyMigrationJobRequest request = * VerifyMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setMigrationJob(MigrationJob.newBuilder().build()) * .build(); * OperationFuture future = * dataMigrationServiceClient.verifyMigrationJobOperationCallable().futureCall(request); @@ -1379,6 +1386,8 @@ public final OperationFuture verifyMigrationJob * VerifyMigrationJobRequest request = * VerifyMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setMigrationJob(MigrationJob.newBuilder().build()) * .build(); * ApiFuture future = * dataMigrationServiceClient.verifyMigrationJobCallable().futureCall(request); @@ -1409,6 +1418,7 @@ public final UnaryCallable verifyMigration * RestartMigrationJobRequest request = * RestartMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setSkipValidation(true) * .build(); * MigrationJob response = dataMigrationServiceClient.restartMigrationJobAsync(request).get(); * } @@ -1440,6 +1450,7 @@ public final OperationFuture restartMigrationJo * RestartMigrationJobRequest request = * RestartMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setSkipValidation(true) * .build(); * OperationFuture future = * dataMigrationServiceClient.restartMigrationJobOperationCallable().futureCall(request); @@ -1471,6 +1482,7 @@ public final OperationFuture restartMigrationJo * RestartMigrationJobRequest request = * RestartMigrationJobRequest.newBuilder() * .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + * .setSkipValidation(true) * .build(); * ApiFuture future = * dataMigrationServiceClient.restartMigrationJobCallable().futureCall(request); @@ -1547,6 +1559,75 @@ public final UnaryCallable generateSshScrip return stub.generateSshScriptCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy. + * + *

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()) {
+   *   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 response = dataMigrationServiceClient.generateTcpProxyScript(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 TcpProxyScript generateTcpProxyScript(GenerateTcpProxyScriptRequest request) { + return generateTcpProxyScriptCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy. + * + *

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()) {
+   *   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();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.generateTcpProxyScriptCallable().futureCall(request);
+   *   // Do something.
+   *   TcpProxyScript response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateTcpProxyScriptCallable() { + return stub.generateTcpProxyScriptCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a list of all connection profiles in a given project and location. @@ -1864,8 +1945,7 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataMigrationServiceClient dataMigrationServiceClient = * DataMigrationServiceClient.create()) { - * ConnectionProfileName parent = - * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); * String connectionProfileId = "connectionProfileId597575526"; * ConnectionProfile response = @@ -1882,9 +1962,7 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectionProfileAsync( - ConnectionProfileName parent, - ConnectionProfile connectionProfile, - String connectionProfileId) { + LocationName parent, ConnectionProfile connectionProfile, String connectionProfileId) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1908,8 +1986,7 @@ public final OperationFuture createConnect * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataMigrationServiceClient dataMigrationServiceClient = * DataMigrationServiceClient.create()) { - * String parent = - * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); * String connectionProfileId = "connectionProfileId597575526"; * ConnectionProfile response = @@ -1952,9 +2029,7 @@ public final OperationFuture createConnect * DataMigrationServiceClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() - * .setParent( - * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setConnectionProfileId("connectionProfileId597575526") * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1990,9 +2065,7 @@ public final OperationFuture createConnect * DataMigrationServiceClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() - * .setParent( - * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setConnectionProfileId("connectionProfileId597575526") * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") @@ -2028,9 +2101,7 @@ public final OperationFuture createConnect * DataMigrationServiceClient.create()) { * CreateConnectionProfileRequest request = * CreateConnectionProfileRequest.newBuilder() - * .setParent( - * ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") - * .toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setConnectionProfileId("connectionProfileId597575526") * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") @@ -3716,6 +3787,7 @@ public final OperationFuture deleteConversionWorkspace * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") * .toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * dataMigrationServiceClient.deleteConversionWorkspaceAsync(request).get(); * } @@ -3749,6 +3821,7 @@ public final OperationFuture deleteConversionWorkspace * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") * .toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * OperationFuture future = * dataMigrationServiceClient @@ -3784,6 +3857,7 @@ public final OperationFuture deleteConversionWorkspace * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") * .toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * ApiFuture future = * dataMigrationServiceClient.deleteConversionWorkspaceCallable().futureCall(request); @@ -3799,7 +3873,7 @@ public final OperationFuture 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AssignSpecificValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AssignSpecificValueOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AssignSpecificValueOrBuilder.java new file mode 100644 index 000000000000..92cfd918502e --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AssignSpecificValueOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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 AssignSpecificValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.AssignSpecificValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Specific value to be assigned
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * Required. Specific value to be assigned
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntry.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntry.java index c80280695edf..987c57bf43b1 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntry.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntry.java @@ -238,10 +238,10 @@ public interface SeedJobDetailsOrBuilder * * *
-     * The connection profile which was used for the seed job.
+     * Output only. The connection profile which was used for the seed job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The connectionProfile. */ @@ -250,10 +250,10 @@ public interface SeedJobDetailsOrBuilder * * *
-     * The connection profile which was used for the seed job.
+     * Output only. The connection profile which was used for the seed job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for connectionProfile. */ @@ -311,10 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The connection profile which was used for the seed job.
+     * Output only. The connection profile which was used for the seed job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The connectionProfile. */ @@ -334,10 +334,10 @@ public java.lang.String getConnectionProfile() { * * *
-     * The connection profile which was used for the seed job.
+     * Output only. The connection profile which was used for the seed job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for connectionProfile. */ @@ -714,10 +714,10 @@ public Builder mergeFrom( * * *
-       * The connection profile which was used for the seed job.
+       * Output only. The connection profile which was used for the seed job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The connectionProfile. */ @@ -736,10 +736,10 @@ public java.lang.String getConnectionProfile() { * * *
-       * The connection profile which was used for the seed job.
+       * Output only. The connection profile which was used for the seed job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for connectionProfile. */ @@ -758,10 +758,10 @@ public com.google.protobuf.ByteString getConnectionProfileBytes() { * * *
-       * The connection profile which was used for the seed job.
+       * Output only. The connection profile which was used for the seed job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The connectionProfile to set. * @return This builder for chaining. @@ -779,10 +779,10 @@ public Builder setConnectionProfile(java.lang.String value) { * * *
-       * The connection profile which was used for the seed job.
+       * Output only. The connection profile which was used for the seed job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -796,10 +796,10 @@ public Builder clearConnectionProfile() { * * *
-       * The connection profile which was used for the seed job.
+       * Output only. The connection profile which was used for the seed job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for connectionProfile to set. * @return This builder for chaining. @@ -891,10 +891,10 @@ public interface ImportRulesJobDetailsOrBuilder * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the files. */ @@ -903,10 +903,10 @@ public interface ImportRulesJobDetailsOrBuilder * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of files. */ @@ -915,10 +915,10 @@ public interface ImportRulesJobDetailsOrBuilder * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The files at the given index. @@ -928,10 +928,10 @@ public interface ImportRulesJobDetailsOrBuilder * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the files at the given index. @@ -942,10 +942,12 @@ public interface ImportRulesJobDetailsOrBuilder * * *
-     * The requested file format.
+     * Output only. The requested file format.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for fileFormat. */ @@ -954,10 +956,12 @@ public interface ImportRulesJobDetailsOrBuilder * * *
-     * The requested file format.
+     * Output only. The requested file format.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The fileFormat. */ @@ -1018,10 +1022,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the files. */ @@ -1032,10 +1036,10 @@ public com.google.protobuf.ProtocolStringList getFilesList() { * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of files. */ @@ -1046,10 +1050,10 @@ public int getFilesCount() { * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The files at the given index. @@ -1061,10 +1065,10 @@ public java.lang.String getFiles(int index) { * * *
-     * File names used for the import rules job.
+     * Output only. File names used for the import rules job.
      * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the files at the given index. @@ -1079,10 +1083,12 @@ public com.google.protobuf.ByteString getFilesBytes(int index) { * * *
-     * The requested file format.
+     * Output only. The requested file format.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for fileFormat. */ @@ -1094,10 +1100,12 @@ public int getFileFormatValue() { * * *
-     * The requested file format.
+     * Output only. The requested file format.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The fileFormat. */ @@ -1528,10 +1536,10 @@ private void ensureFilesIsMutable() { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the files. */ @@ -1543,10 +1551,10 @@ public com.google.protobuf.ProtocolStringList getFilesList() { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of files. */ @@ -1557,10 +1565,10 @@ public int getFilesCount() { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The files at the given index. @@ -1572,10 +1580,10 @@ public java.lang.String getFiles(int index) { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the value to return. * @return The bytes of the files at the given index. @@ -1587,10 +1595,10 @@ public com.google.protobuf.ByteString getFilesBytes(int index) { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index to set the value at. * @param value The files to set. @@ -1610,10 +1618,10 @@ public Builder setFiles(int index, java.lang.String value) { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The files to add. * @return This builder for chaining. @@ -1632,10 +1640,10 @@ public Builder addFiles(java.lang.String value) { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param values The files to add. * @return This builder for chaining. @@ -1651,10 +1659,10 @@ public Builder addAllFiles(java.lang.Iterable values) { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1669,10 +1677,10 @@ public Builder clearFiles() { * * *
-       * File names used for the import rules job.
+       * Output only. File names used for the import rules job.
        * 
* - * repeated string files = 1; + * repeated string files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes of the files to add. * @return This builder for chaining. @@ -1694,10 +1702,12 @@ public Builder addFilesBytes(com.google.protobuf.ByteString value) { * * *
-       * The requested file format.
+       * Output only. The requested file format.
        * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for fileFormat. */ @@ -1709,10 +1719,12 @@ public int getFileFormatValue() { * * *
-       * The requested file format.
+       * Output only. The requested file format.
        * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for fileFormat to set. * @return This builder for chaining. @@ -1727,10 +1739,12 @@ public Builder setFileFormatValue(int value) { * * *
-       * The requested file format.
+       * Output only. The requested file format.
        * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The fileFormat. */ @@ -1746,10 +1760,12 @@ public com.google.cloud.clouddms.v1.ImportRulesFileFormat getFileFormat() { * * *
-       * The requested file format.
+       * Output only. The requested file format.
        * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The fileFormat to set. * @return This builder for chaining. @@ -1767,10 +1783,12 @@ public Builder setFileFormat(com.google.cloud.clouddms.v1.ImportRulesFileFormat * * *
-       * The requested file format.
+       * Output only. The requested file format.
        * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1858,10 +1876,10 @@ public interface ConvertJobDetailsOrBuilder * * *
-     * AIP-160 based filter used to specify the entities to convert
+     * Output only. AIP-160 based filter used to specify the entities to convert
      * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The filter. */ @@ -1870,10 +1888,10 @@ public interface ConvertJobDetailsOrBuilder * * *
-     * AIP-160 based filter used to specify the entities to convert
+     * Output only. AIP-160 based filter used to specify the entities to convert
      * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for filter. */ @@ -1931,10 +1949,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * AIP-160 based filter used to specify the entities to convert
+     * Output only. AIP-160 based filter used to specify the entities to convert
      * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The filter. */ @@ -1954,10 +1972,10 @@ public java.lang.String getFilter() { * * *
-     * AIP-160 based filter used to specify the entities to convert
+     * Output only. AIP-160 based filter used to specify the entities to convert
      * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for filter. */ @@ -2335,10 +2353,10 @@ public Builder mergeFrom( * * *
-       * AIP-160 based filter used to specify the entities to convert
+       * Output only. AIP-160 based filter used to specify the entities to convert
        * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The filter. */ @@ -2357,10 +2375,10 @@ public java.lang.String getFilter() { * * *
-       * AIP-160 based filter used to specify the entities to convert
+       * Output only. AIP-160 based filter used to specify the entities to convert
        * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for filter. */ @@ -2379,10 +2397,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-       * AIP-160 based filter used to specify the entities to convert
+       * Output only. AIP-160 based filter used to specify the entities to convert
        * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The filter to set. * @return This builder for chaining. @@ -2400,10 +2418,10 @@ public Builder setFilter(java.lang.String value) { * * *
-       * AIP-160 based filter used to specify the entities to convert
+       * Output only. AIP-160 based filter used to specify the entities to convert
        * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2417,10 +2435,10 @@ public Builder clearFilter() { * * *
-       * AIP-160 based filter used to specify the entities to convert
+       * Output only. AIP-160 based filter used to specify the entities to convert
        * 
* - * string filter = 1; + * string filter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -2512,10 +2530,10 @@ public interface ApplyJobDetailsOrBuilder * * *
-     * The connection profile which was used for the apply job.
+     * Output only. The connection profile which was used for the apply job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The connectionProfile. */ @@ -2524,10 +2542,10 @@ public interface ApplyJobDetailsOrBuilder * * *
-     * The connection profile which was used for the apply job.
+     * Output only. The connection profile which was used for the apply job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for connectionProfile. */ @@ -2537,10 +2555,10 @@ public interface ApplyJobDetailsOrBuilder * * *
-     * AIP-160 based filter used to specify the entities to apply
+     * Output only. AIP-160 based filter used to specify the entities to apply
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The filter. */ @@ -2549,10 +2567,10 @@ public interface ApplyJobDetailsOrBuilder * * *
-     * AIP-160 based filter used to specify the entities to apply
+     * Output only. AIP-160 based filter used to specify the entities to apply
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for filter. */ @@ -2611,10 +2629,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The connection profile which was used for the apply job.
+     * Output only. The connection profile which was used for the apply job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The connectionProfile. */ @@ -2634,10 +2652,10 @@ public java.lang.String getConnectionProfile() { * * *
-     * The connection profile which was used for the apply job.
+     * Output only. The connection profile which was used for the apply job.
      * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for connectionProfile. */ @@ -2662,10 +2680,10 @@ public com.google.protobuf.ByteString getConnectionProfileBytes() { * * *
-     * AIP-160 based filter used to specify the entities to apply
+     * Output only. AIP-160 based filter used to specify the entities to apply
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The filter. */ @@ -2685,10 +2703,10 @@ public java.lang.String getFilter() { * * *
-     * AIP-160 based filter used to specify the entities to apply
+     * Output only. AIP-160 based filter used to specify the entities to apply
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for filter. */ @@ -3089,10 +3107,10 @@ public Builder mergeFrom( * * *
-       * The connection profile which was used for the apply job.
+       * Output only. The connection profile which was used for the apply job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The connectionProfile. */ @@ -3111,10 +3129,10 @@ public java.lang.String getConnectionProfile() { * * *
-       * The connection profile which was used for the apply job.
+       * Output only. The connection profile which was used for the apply job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for connectionProfile. */ @@ -3133,10 +3151,10 @@ public com.google.protobuf.ByteString getConnectionProfileBytes() { * * *
-       * The connection profile which was used for the apply job.
+       * Output only. The connection profile which was used for the apply job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The connectionProfile to set. * @return This builder for chaining. @@ -3154,10 +3172,10 @@ public Builder setConnectionProfile(java.lang.String value) { * * *
-       * The connection profile which was used for the apply job.
+       * Output only. The connection profile which was used for the apply job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3171,10 +3189,10 @@ public Builder clearConnectionProfile() { * * *
-       * The connection profile which was used for the apply job.
+       * Output only. The connection profile which was used for the apply job.
        * 
* - * string connection_profile = 1; + * string connection_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for connectionProfile to set. * @return This builder for chaining. @@ -3195,10 +3213,10 @@ public Builder setConnectionProfileBytes(com.google.protobuf.ByteString value) { * * *
-       * AIP-160 based filter used to specify the entities to apply
+       * Output only. AIP-160 based filter used to specify the entities to apply
        * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The filter. */ @@ -3217,10 +3235,10 @@ public java.lang.String getFilter() { * * *
-       * AIP-160 based filter used to specify the entities to apply
+       * Output only. AIP-160 based filter used to specify the entities to apply
        * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for filter. */ @@ -3239,10 +3257,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-       * AIP-160 based filter used to specify the entities to apply
+       * Output only. AIP-160 based filter used to specify the entities to apply
        * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The filter to set. * @return This builder for chaining. @@ -3260,10 +3278,10 @@ public Builder setFilter(java.lang.String value) { * * *
-       * AIP-160 based filter used to specify the entities to apply
+       * Output only. AIP-160 based filter used to specify the entities to apply
        * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3277,10 +3295,10 @@ public Builder clearFilter() { * * *
-       * AIP-160 based filter used to specify the entities to apply
+       * Output only. AIP-160 based filter used to specify the entities to apply
        * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -3602,10 +3620,12 @@ public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { * * *
-   * Job completion state, i.e. the final state after the job completed.
+   * Output only. Job completion state, i.e. the final state after the job
+   * completed.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for completionState. @@ -3618,10 +3638,12 @@ public int getCompletionStateValue() { * * *
-   * Job completion state, i.e. the final state after the job completed.
+   * Output only. Job completion state, i.e. the final state after the job
+   * completed.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The completionState. @@ -3645,11 +3667,11 @@ public int getCompletionStateValue() { * * *
-   * Job completion comment, such as how many entities were seeded,
+   * Output only. Job completion comment, such as how many entities were seeded,
    * how many warnings were found during conversion, and similar information.
    * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The completionComment. */ @@ -3669,11 +3691,11 @@ public java.lang.String getCompletionComment() { * * *
-   * Job completion comment, such as how many entities were seeded,
+   * Output only. Job completion comment, such as how many entities were seeded,
    * how many warnings were found during conversion, and similar information.
    * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for completionComment. */ @@ -3696,11 +3718,11 @@ public com.google.protobuf.ByteString getCompletionCommentBytes() { * * *
-   * Whether the client requested the conversion workspace to be committed after
-   * a successful completion of the job.
+   * Output only. Whether the client requested the conversion workspace to be
+   * committed after a successful completion of the job.
    * 
* - * bool request_autocommit = 7; + * bool request_autocommit = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The requestAutocommit. */ @@ -3714,10 +3736,11 @@ public boolean getRequestAutocommit() { * * *
-   * Seed job details.
+   * Output only. Seed job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the seedJobDetails field is set. @@ -3730,10 +3753,11 @@ public boolean hasSeedJobDetails() { * * *
-   * Seed job details.
+   * Output only. Seed job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The seedJobDetails. @@ -3749,10 +3773,11 @@ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails getSeed * * *
-   * Seed job details.
+   * Output only. Seed job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -3769,11 +3794,11 @@ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails getSeed * * *
-   * Import rules job details.
+   * Output only. Import rules job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the importRulesJobDetails field is set. @@ -3786,11 +3811,11 @@ public boolean hasImportRulesJobDetails() { * * *
-   * Import rules job details.
+   * Output only. Import rules job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The importRulesJobDetails. @@ -3808,11 +3833,11 @@ public boolean hasImportRulesJobDetails() { * * *
-   * Import rules job details.
+   * Output only. Import rules job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -3830,11 +3855,11 @@ public boolean hasImportRulesJobDetails() { * * *
-   * Convert job details.
+   * Output only. Convert job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the convertJobDetails field is set. @@ -3847,11 +3872,11 @@ public boolean hasConvertJobDetails() { * * *
-   * Convert job details.
+   * Output only. Convert job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The convertJobDetails. @@ -3869,11 +3894,11 @@ public boolean hasConvertJobDetails() { * * *
-   * Convert job details.
+   * Output only. Convert job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -3891,10 +3916,11 @@ public boolean hasConvertJobDetails() { * * *
-   * Apply job details.
+   * Output only. Apply job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the applyJobDetails field is set. @@ -3907,10 +3933,11 @@ public boolean hasApplyJobDetails() { * * *
-   * Apply job details.
+   * Output only. Apply job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The applyJobDetails. @@ -3926,10 +3953,11 @@ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails getApp * * *
-   * Apply job details.
+   * Output only. Apply job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -5184,11 +5212,12 @@ public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { * * *
-     * Job completion state, i.e. the final state after the job completed.
+     * Output only. Job completion state, i.e. the final state after the job
+     * completed.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for completionState. @@ -5201,11 +5230,12 @@ public int getCompletionStateValue() { * * *
-     * Job completion state, i.e. the final state after the job completed.
+     * Output only. Job completion state, i.e. the final state after the job
+     * completed.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for completionState to set. @@ -5221,11 +5251,12 @@ public Builder setCompletionStateValue(int value) { * * *
-     * Job completion state, i.e. the final state after the job completed.
+     * Output only. Job completion state, i.e. the final state after the job
+     * completed.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The completionState. @@ -5244,11 +5275,12 @@ public Builder setCompletionStateValue(int value) { * * *
-     * Job completion state, i.e. the final state after the job completed.
+     * Output only. Job completion state, i.e. the final state after the job
+     * completed.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The completionState to set. @@ -5268,11 +5300,12 @@ public Builder setCompletionState( * * *
-     * Job completion state, i.e. the final state after the job completed.
+     * Output only. Job completion state, i.e. the final state after the job
+     * completed.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -5289,11 +5322,11 @@ public Builder clearCompletionState() { * * *
-     * Job completion comment, such as how many entities were seeded,
+     * Output only. Job completion comment, such as how many entities were seeded,
      * how many warnings were found during conversion, and similar information.
      * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The completionComment. */ @@ -5312,11 +5345,11 @@ public java.lang.String getCompletionComment() { * * *
-     * Job completion comment, such as how many entities were seeded,
+     * Output only. Job completion comment, such as how many entities were seeded,
      * how many warnings were found during conversion, and similar information.
      * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for completionComment. */ @@ -5335,11 +5368,11 @@ public com.google.protobuf.ByteString getCompletionCommentBytes() { * * *
-     * Job completion comment, such as how many entities were seeded,
+     * Output only. Job completion comment, such as how many entities were seeded,
      * how many warnings were found during conversion, and similar information.
      * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The completionComment to set. * @return This builder for chaining. @@ -5357,11 +5390,11 @@ public Builder setCompletionComment(java.lang.String value) { * * *
-     * Job completion comment, such as how many entities were seeded,
+     * Output only. Job completion comment, such as how many entities were seeded,
      * how many warnings were found during conversion, and similar information.
      * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5375,11 +5408,11 @@ public Builder clearCompletionComment() { * * *
-     * Job completion comment, such as how many entities were seeded,
+     * Output only. Job completion comment, such as how many entities were seeded,
      * how many warnings were found during conversion, and similar information.
      * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for completionComment to set. * @return This builder for chaining. @@ -5400,11 +5433,11 @@ public Builder setCompletionCommentBytes(com.google.protobuf.ByteString value) { * * *
-     * Whether the client requested the conversion workspace to be committed after
-     * a successful completion of the job.
+     * Output only. Whether the client requested the conversion workspace to be
+     * committed after a successful completion of the job.
      * 
* - * bool request_autocommit = 7; + * bool request_autocommit = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The requestAutocommit. */ @@ -5416,11 +5449,11 @@ public boolean getRequestAutocommit() { * * *
-     * Whether the client requested the conversion workspace to be committed after
-     * a successful completion of the job.
+     * Output only. Whether the client requested the conversion workspace to be
+     * committed after a successful completion of the job.
      * 
* - * bool request_autocommit = 7; + * bool request_autocommit = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The requestAutocommit to set. * @return This builder for chaining. @@ -5436,11 +5469,11 @@ public Builder setRequestAutocommit(boolean value) { * * *
-     * Whether the client requested the conversion workspace to be committed after
-     * a successful completion of the job.
+     * Output only. Whether the client requested the conversion workspace to be
+     * committed after a successful completion of the job.
      * 
* - * bool request_autocommit = 7; + * bool request_autocommit = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5460,10 +5493,11 @@ public Builder clearRequestAutocommit() { * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the seedJobDetails field is set. @@ -5476,10 +5510,11 @@ public boolean hasSeedJobDetails() { * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The seedJobDetails. @@ -5504,10 +5539,11 @@ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails getSeed * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setSeedJobDetails( @@ -5528,10 +5564,11 @@ public Builder setSeedJobDetails( * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setSeedJobDetails( @@ -5549,10 +5586,11 @@ public Builder setSeedJobDetails( * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeSeedJobDetails( @@ -5586,10 +5624,11 @@ public Builder mergeSeedJobDetails( * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearSeedJobDetails() { @@ -5612,10 +5651,11 @@ public Builder clearSeedJobDetails() { * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder @@ -5626,10 +5666,11 @@ public Builder clearSeedJobDetails() { * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -5649,10 +5690,11 @@ public Builder clearSeedJobDetails() { * * *
-     * Seed job details.
+     * Output only. Seed job details.
      * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5690,11 +5732,11 @@ public Builder clearSeedJobDetails() { * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the importRulesJobDetails field is set. @@ -5707,11 +5749,11 @@ public boolean hasImportRulesJobDetails() { * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The importRulesJobDetails. @@ -5738,11 +5780,11 @@ public boolean hasImportRulesJobDetails() { * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setImportRulesJobDetails( @@ -5763,11 +5805,11 @@ public Builder setImportRulesJobDetails( * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setImportRulesJobDetails( @@ -5786,11 +5828,11 @@ public Builder setImportRulesJobDetails( * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeImportRulesJobDetails( @@ -5824,11 +5866,11 @@ public Builder mergeImportRulesJobDetails( * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearImportRulesJobDetails() { @@ -5851,11 +5893,11 @@ public Builder clearImportRulesJobDetails() { * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder @@ -5866,11 +5908,11 @@ public Builder clearImportRulesJobDetails() { * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -5891,11 +5933,11 @@ public Builder clearImportRulesJobDetails() { * * *
-     * Import rules job details.
+     * Output only. Import rules job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5934,11 +5976,11 @@ public Builder clearImportRulesJobDetails() { * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the convertJobDetails field is set. @@ -5951,11 +5993,11 @@ public boolean hasConvertJobDetails() { * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The convertJobDetails. @@ -5981,11 +6023,11 @@ public boolean hasConvertJobDetails() { * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setConvertJobDetails( @@ -6006,11 +6048,11 @@ public Builder setConvertJobDetails( * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setConvertJobDetails( @@ -6029,11 +6071,11 @@ public Builder setConvertJobDetails( * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeConvertJobDetails( @@ -6067,11 +6109,11 @@ public Builder mergeConvertJobDetails( * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearConvertJobDetails() { @@ -6094,11 +6136,11 @@ public Builder clearConvertJobDetails() { * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder @@ -6109,11 +6151,11 @@ public Builder clearConvertJobDetails() { * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -6133,11 +6175,11 @@ public Builder clearConvertJobDetails() { * * *
-     * Convert job details.
+     * Output only. Convert job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -6175,11 +6217,11 @@ public Builder clearConvertJobDetails() { * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the applyJobDetails field is set. @@ -6192,11 +6234,11 @@ public boolean hasApplyJobDetails() { * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The applyJobDetails. @@ -6221,11 +6263,11 @@ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails getApp * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setApplyJobDetails( @@ -6246,11 +6288,11 @@ public Builder setApplyJobDetails( * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setApplyJobDetails( @@ -6269,11 +6311,11 @@ public Builder setApplyJobDetails( * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeApplyJobDetails( @@ -6307,11 +6349,11 @@ public Builder mergeApplyJobDetails( * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearApplyJobDetails() { @@ -6334,11 +6376,11 @@ public Builder clearApplyJobDetails() { * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder @@ -6349,11 +6391,11 @@ public Builder clearApplyJobDetails() { * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -6373,11 +6415,11 @@ public Builder clearApplyJobDetails() { * * *
-     * Apply job details.
+     * Output only. Apply job details.
      * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntryOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntryOrBuilder.java index d9c0e9928c63..d31f521832bc 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntryOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntryOrBuilder.java @@ -147,10 +147,12 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Job completion state, i.e. the final state after the job completed.
+   * Output only. Job completion state, i.e. the final state after the job
+   * completed.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for completionState. @@ -160,10 +162,12 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Job completion state, i.e. the final state after the job completed.
+   * Output only. Job completion state, i.e. the final state after the job
+   * completed.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The completionState. @@ -174,11 +178,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Job completion comment, such as how many entities were seeded,
+   * Output only. Job completion comment, such as how many entities were seeded,
    * how many warnings were found during conversion, and similar information.
    * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The completionComment. */ @@ -187,11 +191,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Job completion comment, such as how many entities were seeded,
+   * Output only. Job completion comment, such as how many entities were seeded,
    * how many warnings were found during conversion, and similar information.
    * 
* - * string completion_comment = 6; + * string completion_comment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for completionComment. */ @@ -201,11 +205,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Whether the client requested the conversion workspace to be committed after
-   * a successful completion of the job.
+   * Output only. Whether the client requested the conversion workspace to be
+   * committed after a successful completion of the job.
    * 
* - * bool request_autocommit = 7; + * bool request_autocommit = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The requestAutocommit. */ @@ -215,10 +219,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Seed job details.
+   * Output only. Seed job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the seedJobDetails field is set. @@ -228,10 +233,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Seed job details.
+   * Output only. Seed job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The seedJobDetails. @@ -241,10 +247,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Seed job details.
+   * Output only. Seed job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder @@ -254,11 +261,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Import rules job details.
+   * Output only. Import rules job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the importRulesJobDetails field is set. @@ -268,11 +275,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Import rules job details.
+   * Output only. Import rules job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The importRulesJobDetails. @@ -283,11 +290,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Import rules job details.
+   * Output only. Import rules job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder @@ -297,11 +304,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Convert job details.
+   * Output only. Convert job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the convertJobDetails field is set. @@ -311,11 +318,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Convert job details.
+   * Output only. Convert job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The convertJobDetails. @@ -325,11 +332,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Convert job details.
+   * Output only. Convert job details.
    * 
* * - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder @@ -339,10 +346,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Apply job details.
+   * Output only. Apply job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the applyJobDetails field is set. @@ -352,10 +360,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Apply job details.
+   * Output only. Apply job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The applyJobDetails. @@ -365,10 +374,11 @@ public interface BackgroundJobLogEntryOrBuilder * * *
-   * Apply job details.
+   * Output only. Apply job details.
    * 
* - * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobType.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobType.java index c0efe84df4c2..068da8c60d76 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobType.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobType.java @@ -202,7 +202,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() .getEnumTypes() - .get(1); + .get(3); } private static final BackgroundJobType[] VALUES = values(); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java index ddfe085ba3a0..03430e44709f 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java @@ -49,6 +49,7 @@ private CloudSqlSettings() { collation_ = ""; cmekKeyName_ = ""; availabilityType_ = 0; + edition_ = 0; } @java.lang.Override @@ -514,6 +515,16 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu * POSTGRES_14 = 17; */ POSTGRES_14(17), + /** + * + * + *
+     * PostgreSQL 15.
+     * 
+ * + * POSTGRES_15 = 18; + */ + POSTGRES_15(18), UNRECOGNIZED(-1), ; @@ -617,6 +628,16 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu * POSTGRES_14 = 17; */ public static final int POSTGRES_14_VALUE = 17; + /** + * + * + *
+     * PostgreSQL 15.
+     * 
+ * + * POSTGRES_15 = 18; + */ + public static final int POSTGRES_15_VALUE = 18; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -662,6 +683,8 @@ public static SqlDatabaseVersion forNumber(int value) { return POSTGRES_13; case 17: return POSTGRES_14; + case 18: + return POSTGRES_15; default: return null; } @@ -878,6 +901,164 @@ private SqlAvailabilityType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType) } + /** + * + * + *
+   * The edition of the given Cloud SQL instance.
+   * Can be ENTERPRISE or ENTERPRISE_PLUS.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.Edition} + */ + public enum Edition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The instance did not specify the edition.
+     * 
+ * + * EDITION_UNSPECIFIED = 0; + */ + EDITION_UNSPECIFIED(0), + /** + * + * + *
+     * The instance is an enterprise edition.
+     * 
+ * + * ENTERPRISE = 2; + */ + ENTERPRISE(2), + /** + * + * + *
+     * The instance is an enterprise plus edition.
+     * 
+ * + * ENTERPRISE_PLUS = 3; + */ + ENTERPRISE_PLUS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The instance did not specify the edition.
+     * 
+ * + * EDITION_UNSPECIFIED = 0; + */ + public static final int EDITION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The instance is an enterprise edition.
+     * 
+ * + * ENTERPRISE = 2; + */ + public static final int ENTERPRISE_VALUE = 2; + /** + * + * + *
+     * The instance is an enterprise plus edition.
+     * 
+ * + * ENTERPRISE_PLUS = 3; + */ + public static final int ENTERPRISE_PLUS_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Edition valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Edition forNumber(int value) { + switch (value) { + case 0: + return EDITION_UNSPECIFIED; + case 2: + return ENTERPRISE; + case 3: + return ENTERPRISE_PLUS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Edition findValueByNumber(int number) { + return Edition.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(4); + } + + private static final Edition[] VALUES = values(); + + public static Edition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Edition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.CloudSqlSettings.Edition) + } + public static final int DATABASE_VERSION_FIELD_NUMBER = 1; private int databaseVersion_ = 0; /** @@ -1908,6 +2089,47 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType getAvai : result; } + public static final int EDITION_FIELD_NUMBER = 19; + private int edition_ = 0; + /** + * + * + *
+   * Optional. The edition of the given Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for edition. + */ + @java.lang.Override + public int getEditionValue() { + return edition_; + } + /** + * + * + *
+   * Optional. The edition of the given Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The edition. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.CloudSqlSettings.Edition getEdition() { + com.google.cloud.clouddms.v1.CloudSqlSettings.Edition result = + com.google.cloud.clouddms.v1.CloudSqlSettings.Edition.forNumber(edition_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.Edition.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1986,6 +2208,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, secondaryZone_); } + if (edition_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.Edition.EDITION_UNSPECIFIED.getNumber()) { + output.writeEnum(19, edition_); + } getUnknownFields().writeTo(output); } @@ -2076,6 +2302,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, secondaryZone_); } + if (edition_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.Edition.EDITION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, edition_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2122,6 +2352,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCollation().equals(other.getCollation())) return false; if (!getCmekKeyName().equals(other.getCmekKeyName())) return false; if (availabilityType_ != other.availabilityType_) return false; + if (edition_ != other.edition_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2181,6 +2412,8 @@ public int hashCode() { hash = (53 * hash) + getCmekKeyName().hashCode(); hash = (37 * hash) + AVAILABILITY_TYPE_FIELD_NUMBER; hash = (53 * hash) + availabilityType_; + hash = (37 * hash) + EDITION_FIELD_NUMBER; + hash = (53 * hash) + edition_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2378,6 +2611,7 @@ public Builder clear() { collation_ = ""; cmekKeyName_ = ""; availabilityType_ = 0; + edition_ = 0; return this; } @@ -2477,6 +2711,9 @@ private void buildPartial0(com.google.cloud.clouddms.v1.CloudSqlSettings result) if (((from_bitField0_ & 0x00020000) != 0)) { result.availabilityType_ = availabilityType_; } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.edition_ = edition_; + } } @java.lang.Override @@ -2590,6 +2827,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlSettings other) { if (other.availabilityType_ != 0) { setAvailabilityTypeValue(other.getAvailabilityTypeValue()); } + if (other.edition_ != 0) { + setEditionValue(other.getEditionValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2738,6 +2978,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 146 + case 152: + { + edition_ = input.readEnum(); + bitField0_ |= 0x00040000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5231,6 +5477,108 @@ public Builder clearAvailabilityType() { return this; } + private int edition_ = 0; + /** + * + * + *
+     * Optional. The edition of the given Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for edition. + */ + @java.lang.Override + public int getEditionValue() { + return edition_; + } + /** + * + * + *
+     * Optional. The edition of the given Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for edition to set. + * @return This builder for chaining. + */ + public Builder setEditionValue(int value) { + edition_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The edition of the given Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The edition. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.CloudSqlSettings.Edition getEdition() { + com.google.cloud.clouddms.v1.CloudSqlSettings.Edition result = + com.google.cloud.clouddms.v1.CloudSqlSettings.Edition.forNumber(edition_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.Edition.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The edition of the given Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The edition to set. + * @return This builder for chaining. + */ + public Builder setEdition(com.google.cloud.clouddms.v1.CloudSqlSettings.Edition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; + edition_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The edition of the given Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEdition() { + bitField0_ = (bitField0_ & ~0x00040000); + edition_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java index 2ec7a88d8517..49d48ca46c8a 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java @@ -670,4 +670,33 @@ java.lang.String getDatabaseFlagsOrDefault( * @return The availabilityType. */ com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType getAvailabilityType(); + + /** + * + * + *
+   * Optional. The edition of the given Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for edition. + */ + int getEditionValue(); + /** + * + * + *
+   * Optional. The edition of the given Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The edition. + */ + com.google.cloud.clouddms.v1.CloudSqlSettings.Edition getEdition(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java index 5f5fa36dc0cb..51d8a4514bd6 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java @@ -91,6 +91,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_SshScript_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_TcpProxyScript_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_TcpProxyScript_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -175,6 +183,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -215,6 +235,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -240,419 +268,485 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uddms/v1/clouddms_resources.proto\032\n\016migration_jobs\030\001 \003(\0132&.google.cloud.c" - + "louddms.v1.MigrationJob\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Z\n\026GetMigr" - + "ationJobRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)" - + "datamigration.googleapis.com/MigrationJo" - + "b\"\330\001\n\031CreateMigrationJobRequest\022B\n\006paren" - + "t\030\001 \001(\tB2\342A\001\002\372A+\022)datamigration.googleap" - + "is.com/MigrationJob\022\036\n\020migration_job_id\030" - + "\002 \001(\tB\004\342A\001\002\022C\n\rmigration_job\030\003 \001(\0132&.goo" - + "gle.cloud.clouddms.v1.MigrationJobB\004\342A\001\002" - + "\022\022\n\nrequest_id\030\004 \001(\t\"\253\001\n\031UpdateMigration" - + "JobRequest\0225\n\013update_mask\030\001 \001(\0132\032.google" - + ".protobuf.FieldMaskB\004\342A\001\002\022C\n\rmigration_j" - + "ob\030\002 \001(\0132&.google.cloud.clouddms.v1.Migr" - + "ationJobB\004\342A\001\002\022\022\n\nrequest_id\030\003 \001(\t\"\200\001\n\031D" - + "eleteMigrationJobRequest\022@\n\004name\030\001 \001(\tB2" - + "\342A\001\002\372A+\n)datamigration.googleapis.com/Mi" - + "grationJob\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030" - + "\003 \001(\010\"X\n\030StartMigrationJobRequest\022<\n\004nam" - + "e\030\001 \001(\tB.\372A+\n)datamigration.googleapis.c" - + "om/MigrationJob\"W\n\027StopMigrationJobReque" - + "st\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.goo" - + "gleapis.com/MigrationJob\"Y\n\031ResumeMigrat" - + "ionJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datami" - + "gration.googleapis.com/MigrationJob\"Z\n\032P" - + "romoteMigrationJobRequest\022<\n\004name\030\001 \001(\tB" - + ".\372A+\n)datamigration.googleapis.com/Migra" - + "tionJob\"Y\n\031VerifyMigrationJobRequest\022<\n\004" - + "name\030\001 \001(\tB.\372A+\n)datamigration.googleapi" - + "s.com/MigrationJob\"Z\n\032RestartMigrationJo" - + "bRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigrati" - + "on.googleapis.com/MigrationJob\"\247\002\n\030Gener" - + "ateSshScriptRequest\022E\n\rmigration_job\030\001 \001" + + "ations.proto\032\033google/protobuf/empty.prot" + + "o\032 google/protobuf/field_mask.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\247\001\n\030ListMig" + + "rationJobsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372" + + "A+\022)datamigration.googleapis.com/Migrati" + + "onJob\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\211" + + "\001\n\031ListMigrationJobsResponse\022>\n\016migratio" + + "n_jobs\030\001 \003(\0132&.google.cloud.clouddms.v1." + + "MigrationJob\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"Z\n\026GetMigrationJobReq" + + "uest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)datamigrati" + + "on.googleapis.com/MigrationJob\"\336\001\n\031Creat" + + "eMigrationJobRequest\022B\n\006parent\030\001 \001(\tB2\342A" + + "\001\002\372A+\022)datamigration.googleapis.com/Migr" + + "ationJob\022\036\n\020migration_job_id\030\002 \001(\tB\004\342A\001\002" + + "\022C\n\rmigration_job\030\003 \001(\0132&.google.cloud.c" + + "louddms.v1.MigrationJobB\004\342A\001\002\022\030\n\nrequest" + + "_id\030\004 \001(\tB\004\342A\001\001\"\253\001\n\031UpdateMigrationJobRe" + + "quest\0225\n\013update_mask\030\001 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\004\342A\001\002\022C\n\rmigration_job\030\002 " + + "\001(\0132&.google.cloud.clouddms.v1.Migration" + + "JobB\004\342A\001\002\022\022\n\nrequest_id\030\003 \001(\t\"\200\001\n\031Delete" + + "MigrationJobRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372" + + "A+\n)datamigration.googleapis.com/Migrati" + + "onJob\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 \001(\010" + + "\"w\n\030StartMigrationJobRequest\022<\n\004name\030\001 \001" + "(\tB.\372A+\n)datamigration.googleapis.com/Mi" - + "grationJob\022\020\n\002vm\030\002 \001(\tB\004\342A\001\002\022H\n\022vm_creat" - + "ion_config\030d \001(\0132*.google.cloud.clouddms" - + ".v1.VmCreationConfigH\000\022J\n\023vm_selection_c" - + "onfig\030e \001(\0132+.google.cloud.clouddms.v1.V" - + "mSelectionConfigH\000\022\017\n\007vm_port\030\003 \001(\005B\013\n\tv" - + "m_config\"R\n\020VmCreationConfig\022\035\n\017vm_machi" - + "ne_type\030\001 \001(\tB\004\342A\001\002\022\017\n\007vm_zone\030\002 \001(\t\022\016\n\006" - + "subnet\030\003 \001(\t\"*\n\021VmSelectionConfig\022\025\n\007vm_" - + "zone\030\001 \001(\tB\004\342A\001\002\"\033\n\tSshScript\022\016\n\006script\030" - + "\001 \001(\t\"\261\001\n\035ListConnectionProfilesRequest\022" - + "G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.datamigration." - + "googleapis.com/ConnectionProfile\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" - + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\230\001\n\036ListConnec" - + "tionProfilesResponse\022H\n\023connection_profi" - + "les\030\001 \003(\0132+.google.cloud.clouddms.v1.Con" - + "nectionProfile\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"d\n\033GetConnectionPro" - + "fileRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.data" - + "migration.googleapis.com/ConnectionProfi" - + "le\"\263\002\n\036CreateConnectionProfileRequest\022G\n" - + "\006parent\030\001 \001(\tB7\342A\001\002\372A0\n.datamigration.go" - + "ogleapis.com/ConnectionProfile\022#\n\025connec" - + "tion_profile_id\030\002 \001(\tB\004\342A\001\002\022M\n\022connectio" - + "n_profile\030\003 \001(\0132+.google.cloud.clouddms." - + "v1.ConnectionProfileB\004\342A\001\002\022\030\n\nrequest_id" - + "\030\004 \001(\tB\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001" - + "\001\022\035\n\017skip_validation\030\006 \001(\010B\004\342A\001\001\"\374\001\n\036Upd" - + "ateConnectionProfileRequest\0225\n\013update_ma" - + "sk\030\001 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" - + "\001\002\022M\n\022connection_profile\030\002 \001(\0132+.google." - + "cloud.clouddms.v1.ConnectionProfileB\004\342A\001" - + "\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\022\033\n\rvalidate_" - + "only\030\004 \001(\010B\004\342A\001\001\022\035\n\017skip_validation\030\005 \001(" - + "\010B\004\342A\001\001\"\212\001\n\036DeleteConnectionProfileReque" - + "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.datamigration" - + ".googleapis.com/ConnectionProfile\022\022\n\nreq" - + "uest_id\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"\226\002\n\036CreateP" - + "rivateConnectionRequest\022G\n\006parent\030\001 \001(\tB" - + "7\342A\001\002\372A0\022.datamigration.googleapis.com/P" - + "rivateConnection\022#\n\025private_connection_i" - + "d\030\002 \001(\tB\004\342A\001\002\022M\n\022private_connection\030\003 \001(" - + "\0132+.google.cloud.clouddms.v1.PrivateConn" - + "ectionB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\035" - + "\n\017skip_validation\030\005 \001(\010B\004\342A\001\001\"\261\001\n\035ListPr" - + "ivateConnectionsRequest\022G\n\006parent\030\001 \001(\tB" - + "7\342A\001\002\372A0\022.datamigration.googleapis.com/P" - + "rivateConnection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" - + "_by\030\005 \001(\t\"\230\001\n\036ListPrivateConnectionsResp" - + "onse\022H\n\023private_connections\030\001 \003(\0132+.goog" - + "le.cloud.clouddms.v1.PrivateConnection\022\027" - + "\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003" - + " \003(\t\"\201\001\n\036DeletePrivateConnectionRequest\022" - + "E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.datamigration.go" - + "ogleapis.com/PrivateConnection\022\030\n\nreques" - + "t_id\030\002 \001(\tB\004\342A\001\001\"d\n\033GetPrivateConnection" - + "Request\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.datamigr" - + "ation.googleapis.com/PrivateConnection\"\207" - + "\002\n\021OperationMetadata\0225\n\013create_time\030\001 \001(" - + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n\010e" - + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 " - + "\001(\tB\004\342A\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022" - + "$\n\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n" - + "\013api_version\030\007 \001(\tB\004\342A\001\003\"\243\001\n\037ListConvers" - + "ionWorkspacesRequest\022I\n\006parent\030\001 \001(\tB9\342A" - + "\001\002\372A2\0220datamigration.googleapis.com/Conv" - + "ersionWorkspace\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\236\001\n ListC" - + "onversionWorkspacesResponse\022L\n\025conversio" - + "n_workspaces\030\001 \003(\0132-.google.cloud.cloudd" - + "ms.v1.ConversionWorkspace\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"h\n\035GetCo" - + "nversionWorkspaceRequest\022G\n\004name\030\001 \001(\tB9" - + "\342A\001\002\372A2\n0datamigration.googleapis.com/Co" - + "nversionWorkspace\"\373\001\n CreateConversionWo" - + "rkspaceRequest\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A2\022" - + "0datamigration.googleapis.com/Conversion" - + "Workspace\022%\n\027conversion_workspace_id\030\002 \001" - + "(\tB\004\342A\001\002\022Q\n\024conversion_workspace\030\003 \001(\0132-" - + ".google.cloud.clouddms.v1.ConversionWork" - + "spaceB\004\342A\001\002\022\022\n\nrequest_id\030\004 \001(\t\"\300\001\n Upda" - + "teConversionWorkspaceRequest\0225\n\013update_m" - + "ask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\004\342" - + "A\001\002\022Q\n\024conversion_workspace\030\002 \001(\0132-.goog" - + "le.cloud.clouddms.v1.ConversionWorkspace" - + "B\004\342A\001\002\022\022\n\nrequest_id\030\003 \001(\t\"\177\n DeleteConv" - + "ersionWorkspaceRequest\022G\n\004name\030\001 \001(\tB9\342A" - + "\001\002\372A2\n0datamigration.googleapis.com/Conv" - + "ersionWorkspace\022\022\n\nrequest_id\030\002 \001(\t\"\206\001\n " - + "CommitConversionWorkspaceRequest\022G\n\004name" - + "\030\001 \001(\tB9\342A\001\002\372A2\n0datamigration.googleapi" - + "s.com/ConversionWorkspace\022\031\n\013commit_name" - + "\030\002 \001(\tB\004\342A\001\001\"m\n\"RollbackConversionWorksp" - + "aceRequest\022G\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0datam" - + "igration.googleapis.com/ConversionWorksp" - + "ace\"\247\001\n\037ApplyConversionWorkspaceRequest\022" - + "G\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0datamigration.go" - + "ogleapis.com/ConversionWorkspace\022\016\n\006filt" - + "er\030\002 \001(\t\022\034\n\022connection_profile\030d \001(\tH\000B\r" - + "\n\013destination\"\326\001\n\036SeedConversionWorkspac" - + "eRequest\022C\n\004name\030\001 \001(\tB5\372A2\n0datamigrati" - + "on.googleapis.com/ConversionWorkspace\022\023\n" - + "\013auto_commit\030\002 \001(\010\022#\n\031source_connection_" - + "profile\030d \001(\tH\000\022(\n\036destination_connectio" - + "n_profile\030e \001(\tH\000B\013\n\tseed_from\"\215\001\n!Conve" - + "rtConversionWorkspaceRequest\022C\n\004name\030\001 \001" - + "(\tB5\372A2\n0datamigration.googleapis.com/Co" - + "nversionWorkspace\022\023\n\013auto_commit\030\004 \001(\010\022\016" - + "\n\006filter\030\005 \001(\t\"\331\002\n\031ImportMappingRulesReq" - + "uest\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A2\n0datamigra" + + "grationJob\022\035\n\017skip_validation\030\002 \001(\010B\004\342A\001" + + "\001\"W\n\027StopMigrationJobRequest\022<\n\004name\030\001 \001" + + "(\tB.\372A+\n)datamigration.googleapis.com/Mi" + + "grationJob\"Y\n\031ResumeMigrationJobRequest\022" + + "<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.google" + + "apis.com/MigrationJob\"Z\n\032PromoteMigratio" + + "nJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigr" + + "ation.googleapis.com/MigrationJob\"\325\001\n\031Ve" + + "rifyMigrationJobRequest\022<\n\004name\030\001 \001(\tB.\372" + + "A+\n)datamigration.googleapis.com/Migrati" + + "onJob\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\004\342A\001\001\022C\n\rmigration_job\030\003 " + + "\001(\0132&.google.cloud.clouddms.v1.Migration" + + "JobB\004\342A\001\001\"y\n\032RestartMigrationJobRequest\022" + + "<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.google" + + "apis.com/MigrationJob\022\035\n\017skip_validation" + + "\030\002 \001(\010B\004\342A\001\001\"\247\002\n\030GenerateSshScriptReques" + + "t\022E\n\rmigration_job\030\001 \001(\tB.\372A+\n)datamigra" + + "tion.googleapis.com/MigrationJob\022\020\n\002vm\030\002" + + " \001(\tB\004\342A\001\002\022H\n\022vm_creation_config\030d \001(\0132*" + + ".google.cloud.clouddms.v1.VmCreationConf" + + "igH\000\022J\n\023vm_selection_config\030e \001(\0132+.goog" + + "le.cloud.clouddms.v1.VmSelectionConfigH\000" + + "\022\017\n\007vm_port\030\003 \001(\005B\013\n\tvm_config\"R\n\020VmCrea" + + "tionConfig\022\035\n\017vm_machine_type\030\001 \001(\tB\004\342A\001" + + "\002\022\017\n\007vm_zone\030\002 \001(\t\022\016\n\006subnet\030\003 \001(\t\"*\n\021Vm" + + "SelectionConfig\022\025\n\007vm_zone\030\001 \001(\tB\004\342A\001\002\"\033" + + "\n\tSshScript\022\016\n\006script\030\001 \001(\t\"\314\001\n\035Generate" + + "TcpProxyScriptRequest\022E\n\rmigration_job\030\001" + + " \001(\tB.\372A+\n)datamigration.googleapis.com/" + + "MigrationJob\022\025\n\007vm_name\030\002 \001(\tB\004\342A\001\002\022\035\n\017v" + + "m_machine_type\030\003 \001(\tB\004\342A\001\002\022\025\n\007vm_zone\030\004 " + + "\001(\tB\004\342A\001\001\022\027\n\tvm_subnet\030\005 \001(\tB\004\342A\001\002\" \n\016Tc" + + "pProxyScript\022\016\n\006script\030\001 \001(\t\"\261\001\n\035ListCon" + + "nectionProfilesRequest\022G\n\006parent\030\001 \001(\tB7" + + "\342A\001\002\372A0\022.datamigration.googleapis.com/Co" + + "nnectionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_" + + "by\030\005 \001(\t\"\230\001\n\036ListConnectionProfilesRespo" + + "nse\022H\n\023connection_profiles\030\001 \003(\0132+.googl" + + "e.cloud.clouddms.v1.ConnectionProfile\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " + + "\003(\t\"d\n\033GetConnectionProfileRequest\022E\n\004na" + + "me\030\001 \001(\tB7\342A\001\002\372A0\n.datamigration.googlea" + + "pis.com/ConnectionProfile\"\263\002\n\036CreateConn" + + "ectionProfileRequest\022G\n\006parent\030\001 \001(\tB7\342A" + + "\001\002\372A0\022.datamigration.googleapis.com/Conn" + + "ectionProfile\022#\n\025connection_profile_id\030\002" + + " \001(\tB\004\342A\001\002\022M\n\022connection_profile\030\003 \001(\0132+" + + ".google.cloud.clouddms.v1.ConnectionProf" + + "ileB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rv" + + "alidate_only\030\005 \001(\010B\004\342A\001\001\022\035\n\017skip_validat" + + "ion\030\006 \001(\010B\004\342A\001\001\"\374\001\n\036UpdateConnectionProf" + + "ileRequest\0225\n\013update_mask\030\001 \001(\0132\032.google" + + ".protobuf.FieldMaskB\004\342A\001\002\022M\n\022connection_" + + "profile\030\002 \001(\0132+.google.cloud.clouddms.v1" + + ".ConnectionProfileB\004\342A\001\002\022\030\n\nrequest_id\030\003" + + " \001(\tB\004\342A\001\001\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001\001\022" + + "\035\n\017skip_validation\030\005 \001(\010B\004\342A\001\001\"\212\001\n\036Delet" + + "eConnectionProfileRequest\022E\n\004name\030\001 \001(\tB" + + "7\342A\001\002\372A0\n.datamigration.googleapis.com/C" + + "onnectionProfile\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005" + + "force\030\003 \001(\010\"\226\002\n\036CreatePrivateConnectionR" + + "equest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.datamig" + + "ration.googleapis.com/PrivateConnection\022" + + "#\n\025private_connection_id\030\002 \001(\tB\004\342A\001\002\022M\n\022" + + "private_connection\030\003 \001(\0132+.google.cloud." + + "clouddms.v1.PrivateConnectionB\004\342A\001\002\022\030\n\nr" + + "equest_id\030\004 \001(\tB\004\342A\001\001\022\035\n\017skip_validation" + + "\030\005 \001(\010B\004\342A\001\001\"\261\001\n\035ListPrivateConnectionsR" + + "equest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.datamig" + + "ration.googleapis.com/PrivateConnection\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\230\001\n\036Lis" + + "tPrivateConnectionsResponse\022H\n\023private_c" + + "onnections\030\001 \003(\0132+.google.cloud.clouddms" + + ".v1.PrivateConnection\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\201\001\n\036DeletePr" + + "ivateConnectionRequest\022E\n\004name\030\001 \001(\tB7\342A" + + "\001\002\372A0\n.datamigration.googleapis.com/Priv" + + "ateConnection\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"" + + "d\n\033GetPrivateConnectionRequest\022E\n\004name\030\001" + + " \001(\tB7\342A\001\002\372A0\n.datamigration.googleapis." + + "com/PrivateConnection\"\207\002\n\021OperationMetad" + + "ata\0225\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003\022\024\n\006target" + + "\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016stat" + + "us_message\030\005 \001(\tB\004\342A\001\003\022$\n\026requested_canc" + + "ellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_version\030\007 \001(" + + "\tB\004\342A\001\003\"\243\001\n\037ListConversionWorkspacesRequ" + + "est\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A2\0220datamigrat" + + "ion.googleapis.com/ConversionWorkspace\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" + + "\006filter\030\004 \001(\t\"\236\001\n ListConversionWorkspac" + + "esResponse\022L\n\025conversion_workspaces\030\001 \003(" + + "\0132-.google.cloud.clouddms.v1.ConversionW" + + "orkspace\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" + + "eachable\030\003 \003(\t\"h\n\035GetConversionWorkspace" + + "Request\022G\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0datamigr" + + "ation.googleapis.com/ConversionWorkspace" + + "\"\373\001\n CreateConversionWorkspaceRequest\022I\n" + + "\006parent\030\001 \001(\tB9\342A\001\002\372A2\0220datamigration.go" + + "ogleapis.com/ConversionWorkspace\022%\n\027conv" + + "ersion_workspace_id\030\002 \001(\tB\004\342A\001\002\022Q\n\024conve" + + "rsion_workspace\030\003 \001(\0132-.google.cloud.clo" + + "uddms.v1.ConversionWorkspaceB\004\342A\001\002\022\022\n\nre" + + "quest_id\030\004 \001(\t\"\300\001\n UpdateConversionWorks" + + "paceRequest\0225\n\013update_mask\030\001 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\004\342A\001\002\022Q\n\024conversion" + + "_workspace\030\002 \001(\0132-.google.cloud.clouddms" + + ".v1.ConversionWorkspaceB\004\342A\001\002\022\022\n\nrequest" + + "_id\030\003 \001(\t\"\216\001\n DeleteConversionWorkspaceR" + + "equest\022G\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0datamigra" + "tion.googleapis.com/ConversionWorkspace\022" - + "E\n\014rules_format\030\002 \001(\0162/.google.cloud.clo" - + "uddms.v1.ImportRulesFileFormat\022R\n\013rules_" - + "files\030\003 \003(\0132=.google.cloud.clouddms.v1.I" - + "mportMappingRulesRequest.RulesFile\022\023\n\013au" - + "to_commit\030\006 \001(\010\032A\n\tRulesFile\022\035\n\025rules_so" - + "urce_filename\030\001 \001(\t\022\025\n\rrules_content\030\002 \001" - + "(\t\"\220\003\n\037DescribeDatabaseEntitiesRequest\022W" - + "\n\024conversion_workspace\030\001 \001(\tB9\342A\001\002\372A2\n0d" - + "atamigration.googleapis.com/ConversionWo" - + "rkspace\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token" - + "\030\004 \001(\t\022R\n\004tree\030\006 \001(\0162D.google.cloud.clou" - + "ddms.v1.DescribeDatabaseEntitiesRequest." - + "DBTreeType\022\023\n\013uncommitted\030\013 \001(\010\022\021\n\tcommi" - + "t_id\030\014 \001(\t\022\016\n\006filter\030\r \001(\t\"a\n\nDBTreeType" - + "\022\034\n\030DB_TREE_TYPE_UNSPECIFIED\020\000\022\017\n\013SOURCE" - + "_TREE\020\001\022\016\n\nDRAFT_TREE\020\002\022\024\n\020DESTINATION_T" - + "REE\020\003\"\200\001\n DescribeDatabaseEntitiesRespon" - + "se\022C\n\021database_entities\030\001 \003(\0132(.google.c" - + "loud.clouddms.v1.DatabaseEntity\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\375\001\n\033SearchBackgroundJob" - + "sRequest\022W\n\024conversion_workspace\030\001 \001(\tB9" - + "\342A\001\002\372A2\n0datamigration.googleapis.com/Co" - + "nversionWorkspace\022-\n\037return_most_recent_" - + "per_job_type\030\002 \001(\010B\004\342A\001\001\022\026\n\010max_size\030\003 \001" - + "(\005B\004\342A\001\001\022>\n\024completed_until_time\030\004 \001(\0132\032" - + ".google.protobuf.TimestampB\004\342A\001\001\"]\n\034Sear" - + "chBackgroundJobsResponse\022=\n\004jobs\030\001 \003(\0132/" - + ".google.cloud.clouddms.v1.BackgroundJobL" - + "ogEntry\"\237\001\n+DescribeConversionWorkspaceR" - + "evisionsRequest\022W\n\024conversion_workspace\030" + + "\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"\206\001\n C" + + "ommitConversionWorkspaceRequest\022G\n\004name\030" + "\001 \001(\tB9\342A\001\002\372A2\n0datamigration.googleapis" - + ".com/ConversionWorkspace\022\027\n\tcommit_id\030\002 " - + "\001(\tB\004\342A\001\001\"p\n,DescribeConversionWorkspace" - + "RevisionsResponse\022@\n\trevisions\030\001 \003(\0132-.g" - + "oogle.cloud.clouddms.v1.ConversionWorksp" - + "ace\"x\n\025FetchStaticIpsRequest\0228\n\004name\030\001 \001" - + "(\tB*\342A\001\002\372A#\n!locations.googleapis.com/Lo" - + "cation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nstati" - + "c_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\351B\n" - + "\024DataMigrationService\022\300\001\n\021ListMigrationJ" - + "obs\0222.google.cloud.clouddms.v1.ListMigra" - + "tionJobsRequest\0323.google.cloud.clouddms." - + "v1.ListMigrationJobsResponse\"B\332A\006parent\202" - + "\323\344\223\0023\0221/v1/{parent=projects/*/locations/" - + "*}/migrationJobs\022\255\001\n\017GetMigrationJob\0220.g" - + "oogle.cloud.clouddms.v1.GetMigrationJobR" - + "equest\032&.google.cloud.clouddms.v1.Migrat" - + "ionJob\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=project" - + "s/*/locations/*/migrationJobs/*}\022\377\001\n\022Cre" - + "ateMigrationJob\0223.google.cloud.clouddms." - + "v1.CreateMigrationJobRequest\032\035.google.lo" - + "ngrunning.Operation\"\224\001\312A!\n\014MigrationJob\022" - + "\021OperationMetadata\332A%parent,migration_jo" - + "b,migration_job_id\202\323\344\223\002B\"1/v1/{parent=pr" - + "ojects/*/locations/*}/migrationJobs:\rmig" - + "ration_job\022\201\002\n\022UpdateMigrationJob\0223.goog" - + "le.cloud.clouddms.v1.UpdateMigrationJobR" - + "equest\032\035.google.longrunning.Operation\"\226\001" - + "\312A!\n\014MigrationJob\022\021OperationMetadata\332A\031m" - + "igration_job,update_mask\202\323\344\223\002P2?/v1/{mig" - + "ration_job.name=projects/*/locations/*/m" - + "igrationJobs/*}:\rmigration_job\022\327\001\n\022Delet" - + "eMigrationJob\0223.google.cloud.clouddms.v1" - + ".DeleteMigrationJobRequest\032\035.google.long" - + "running.Operation\"m\312A*\n\025google.protobuf." - + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1/" - + "v1/{name=projects/*/locations/*/migratio" - + "nJobs/*}\022\316\001\n\021StartMigrationJob\0222.google." - + "cloud.clouddms.v1.StartMigrationJobReque" - + "st\032\035.google.longrunning.Operation\"f\312A!\n\014" - + "MigrationJob\022\021OperationMetadata\202\323\344\223\002<\"7/" - + "v1/{name=projects/*/locations/*/migratio" - + "nJobs/*}:start:\001*\022\313\001\n\020StopMigrationJob\0221" - + ".google.cloud.clouddms.v1.StopMigrationJ" + + ".com/ConversionWorkspace\022\031\n\013commit_name\030" + + "\002 \001(\tB\004\342A\001\001\"m\n\"RollbackConversionWorkspa" + + "ceRequest\022G\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0datami" + + "gration.googleapis.com/ConversionWorkspa" + + "ce\"\337\001\n\037ApplyConversionWorkspaceRequest\022G" + + "\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0datamigration.goo" + + "gleapis.com/ConversionWorkspace\022\016\n\006filte" + + "r\030\002 \001(\t\022\025\n\007dry_run\030\003 \001(\010B\004\342A\001\001\022\031\n\013auto_c" + + "ommit\030\004 \001(\010B\004\342A\001\001\022\"\n\022connection_profile\030" + + "d \001(\tB\004\342A\001\001H\000B\r\n\013destination\"\213\001\n\027ListMap" + + "pingRulesRequest\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A" + + "2\n0datamigration.googleapis.com/Conversi" + + "onWorkspace\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"q\n\030ListMappingRulesResponse\022<" + + "\n\rmapping_rules\030\001 \003(\0132%.google.cloud.clo" + + "uddms.v1.MappingRule\022\027\n\017next_page_token\030" + + "\002 \001(\t\"X\n\025GetMappingRuleRequest\022?\n\004name\030\001" + + " \001(\tB1\342A\001\002\372A*\n(datamigration.googleapis." + + "com/MappingRule\"\342\001\n\036SeedConversionWorksp" + + "aceRequest\022C\n\004name\030\001 \001(\tB5\372A2\n0datamigra" + + "tion.googleapis.com/ConversionWorkspace\022" + + "\023\n\013auto_commit\030\002 \001(\010\022)\n\031source_connectio" + + "n_profile\030d \001(\tB\004\342A\001\001H\000\022.\n\036destination_c" + + "onnection_profile\030e \001(\tB\004\342A\001\001H\000B\013\n\tseed_" + + "from\"\272\001\n!ConvertConversionWorkspaceReque" + + "st\022C\n\004name\030\001 \001(\tB5\372A2\n0datamigration.goo" + + "gleapis.com/ConversionWorkspace\022\031\n\013auto_" + + "commit\030\004 \001(\010B\004\342A\001\001\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001" + + "\022\037\n\021convert_full_path\030\006 \001(\010B\004\342A\001\001\"\367\002\n\031Im" + + "portMappingRulesRequest\022I\n\006parent\030\001 \001(\tB" + + "9\342A\001\002\372A2\n0datamigration.googleapis.com/C" + + "onversionWorkspace\022K\n\014rules_format\030\002 \001(\016" + + "2/.google.cloud.clouddms.v1.ImportRulesF" + + "ileFormatB\004\342A\001\002\022X\n\013rules_files\030\003 \003(\0132=.g" + + "oogle.cloud.clouddms.v1.ImportMappingRul" + + "esRequest.RulesFileB\004\342A\001\002\022\031\n\013auto_commit" + + "\030\006 \001(\010B\004\342A\001\002\032M\n\tRulesFile\022#\n\025rules_sourc" + + "e_filename\030\001 \001(\tB\004\342A\001\002\022\033\n\rrules_content\030" + + "\002 \001(\tB\004\342A\001\002\"\366\003\n\037DescribeDatabaseEntities" + + "Request\022W\n\024conversion_workspace\030\001 \001(\tB9\342" + + "A\001\002\372A2\n0datamigration.googleapis.com/Con" + + "versionWorkspace\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001" + + "\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\022X\n\004tree\030\006 \001(" + + "\0162D.google.cloud.clouddms.v1.DescribeDat" + + "abaseEntitiesRequest.DBTreeTypeB\004\342A\001\002\022\031\n" + + "\013uncommitted\030\013 \001(\010B\004\342A\001\001\022\027\n\tcommit_id\030\014 " + + "\001(\tB\004\342A\001\001\022\024\n\006filter\030\r \001(\tB\004\342A\001\001\022@\n\004view\030" + + "\016 \001(\0162,.google.cloud.clouddms.v1.Databas" + + "eEntityViewB\004\342A\001\001\"a\n\nDBTreeType\022\034\n\030DB_TR" + + "EE_TYPE_UNSPECIFIED\020\000\022\017\n\013SOURCE_TREE\020\001\022\016" + + "\n\nDRAFT_TREE\020\002\022\024\n\020DESTINATION_TREE\020\003\"\200\001\n" + + " DescribeDatabaseEntitiesResponse\022C\n\021dat" + + "abase_entities\030\001 \003(\0132(.google.cloud.clou" + + "ddms.v1.DatabaseEntity\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"\375\001\n\033SearchBackgroundJobsRequest\022" + + "W\n\024conversion_workspace\030\001 \001(\tB9\342A\001\002\372A2\n0" + + "datamigration.googleapis.com/ConversionW" + + "orkspace\022-\n\037return_most_recent_per_job_t" + + "ype\030\002 \001(\010B\004\342A\001\001\022\026\n\010max_size\030\003 \001(\005B\004\342A\001\001\022" + + ">\n\024completed_until_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\004\342A\001\001\"]\n\034SearchBackgro" + + "undJobsResponse\022=\n\004jobs\030\001 \003(\0132/.google.c" + + "loud.clouddms.v1.BackgroundJobLogEntry\"\237" + + "\001\n+DescribeConversionWorkspaceRevisionsR" + + "equest\022W\n\024conversion_workspace\030\001 \001(\tB9\342A" + + "\001\002\372A2\n0datamigration.googleapis.com/Conv" + + "ersionWorkspace\022\027\n\tcommit_id\030\002 \001(\tB\004\342A\001\001" + + "\"p\n,DescribeConversionWorkspaceRevisions" + + "Response\022@\n\trevisions\030\001 \003(\0132-.google.clo" + + "ud.clouddms.v1.ConversionWorkspace\"\323\001\n\030C" + + "reateMappingRuleRequest\022A\n\006parent\030\001 \001(\tB" + + "1\342A\001\002\372A*\022(datamigration.googleapis.com/M" + + "appingRule\022\035\n\017mapping_rule_id\030\002 \001(\tB\004\342A\001" + + "\002\022A\n\014mapping_rule\030\003 \001(\0132%.google.cloud.c" + + "louddms.v1.MappingRuleB\004\342A\001\002\022\022\n\nrequest_" + + "id\030\004 \001(\t\"u\n\030DeleteMappingRuleRequest\022?\n\004" + + "name\030\001 \001(\tB1\342A\001\002\372A*\022(datamigration.googl" + + "eapis.com/MappingRule\022\030\n\nrequest_id\030\002 \001(" + + "\tB\004\342A\001\001\"x\n\025FetchStaticIpsRequest\0228\n\004name" + + "\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapis.co" + + "m/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\ns" + + "tatic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t" + + "*\240\001\n\022DatabaseEntityView\022$\n DATABASE_ENTI" + + "TY_VIEW_UNSPECIFIED\020\000\022\036\n\032DATABASE_ENTITY" + + "_VIEW_BASIC\020\001\022\035\n\031DATABASE_ENTITY_VIEW_FU" + + "LL\020\002\022%\n!DATABASE_ENTITY_VIEW_ROOT_SUMMAR" + + "Y\020\0032\217K\n\024DataMigrationService\022\300\001\n\021ListMig" + + "rationJobs\0222.google.cloud.clouddms.v1.Li" + + "stMigrationJobsRequest\0323.google.cloud.cl" + + "ouddms.v1.ListMigrationJobsResponse\"B\332A\006" + + "parent\202\323\344\223\0023\0221/v1/{parent=projects/*/loc" + + "ations/*}/migrationJobs\022\255\001\n\017GetMigration" + + "Job\0220.google.cloud.clouddms.v1.GetMigrat" + + "ionJobRequest\032&.google.cloud.clouddms.v1" + + ".MigrationJob\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=" + + "projects/*/locations/*/migrationJobs/*}\022" + + "\377\001\n\022CreateMigrationJob\0223.google.cloud.cl" + + "ouddms.v1.CreateMigrationJobRequest\032\035.go" + + "ogle.longrunning.Operation\"\224\001\312A!\n\014Migrat" + + "ionJob\022\021OperationMetadata\332A%parent,migra" + + "tion_job,migration_job_id\202\323\344\223\002B\"1/v1/{pa" + + "rent=projects/*/locations/*}/migrationJo" + + "bs:\rmigration_job\022\201\002\n\022UpdateMigrationJob" + + "\0223.google.cloud.clouddms.v1.UpdateMigrat" + + "ionJobRequest\032\035.google.longrunning.Opera" + + "tion\"\226\001\312A!\n\014MigrationJob\022\021OperationMetad" + + "ata\332A\031migration_job,update_mask\202\323\344\223\002P2?/" + + "v1/{migration_job.name=projects/*/locati" + + "ons/*/migrationJobs/*}:\rmigration_job\022\327\001" + + "\n\022DeleteMigrationJob\0223.google.cloud.clou" + + "ddms.v1.DeleteMigrationJobRequest\032\035.goog" + + "le.longrunning.Operation\"m\312A*\n\025google.pr" + + "otobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\0023*1/v1/{name=projects/*/locations/*/m" + + "igrationJobs/*}\022\316\001\n\021StartMigrationJob\0222." + + "google.cloud.clouddms.v1.StartMigrationJ" + "obRequest\032\035.google.longrunning.Operation" - + "\"e\312A!\n\014MigrationJob\022\021OperationMetadata\202\323" - + "\344\223\002;\"6/v1/{name=projects/*/locations/*/m" - + "igrationJobs/*}:stop:\001*\022\321\001\n\022ResumeMigrat" - + "ionJob\0223.google.cloud.clouddms.v1.Resume" - + "MigrationJobRequest\032\035.google.longrunning" - + ".Operation\"g\312A!\n\014MigrationJob\022\021Operation" - + "Metadata\202\323\344\223\002=\"8/v1/{name=projects/*/loc" - + "ations/*/migrationJobs/*}:resume:\001*\022\324\001\n\023" - + "PromoteMigrationJob\0224.google.cloud.cloud" - + "dms.v1.PromoteMigrationJobRequest\032\035.goog" - + "le.longrunning.Operation\"h\312A!\n\014Migration" - + "Job\022\021OperationMetadata\202\323\344\223\002>\"9/v1/{name=" - + "projects/*/locations/*/migrationJobs/*}:" - + "promote:\001*\022\321\001\n\022VerifyMigrationJob\0223.goog" - + "le.cloud.clouddms.v1.VerifyMigrationJobR" - + "equest\032\035.google.longrunning.Operation\"g\312" - + "A!\n\014MigrationJob\022\021OperationMetadata\202\323\344\223\002" - + "=\"8/v1/{name=projects/*/locations/*/migr" - + "ationJobs/*}:verify:\001*\022\324\001\n\023RestartMigrat" - + "ionJob\0224.google.cloud.clouddms.v1.Restar" - + "tMigrationJobRequest\032\035.google.longrunnin" - + "g.Operation\"h\312A!\n\014MigrationJob\022\021Operatio" - + "nMetadata\202\323\344\223\002>\"9/v1/{name=projects/*/lo" - + "cations/*/migrationJobs/*}:restart:\001*\022\305\001" - + "\n\021GenerateSshScript\0222.google.cloud.cloud" - + "dms.v1.GenerateSshScriptRequest\032#.google" - + ".cloud.clouddms.v1.SshScript\"W\202\323\344\223\002Q\"L/v" - + "1/{migration_job=projects/*/locations/*/" - + "migrationJobs/*}:generateSshScript:\001*\022\324\001" - + "\n\026ListConnectionProfiles\0227.google.cloud." - + "clouddms.v1.ListConnectionProfilesReques" - + "t\0328.google.cloud.clouddms.v1.ListConnect" - + "ionProfilesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v" - + "1/{parent=projects/*/locations/*}/connec" - + "tionProfiles\022\301\001\n\024GetConnectionProfile\0225." - + "google.cloud.clouddms.v1.GetConnectionPr" - + "ofileRequest\032+.google.cloud.clouddms.v1." - + "ConnectionProfile\"E\332A\004name\202\323\344\223\0028\0226/v1/{n" - + "ame=projects/*/locations/*/connectionPro" - + "files/*}\022\242\002\n\027CreateConnectionProfile\0228.g" - + "oogle.cloud.clouddms.v1.CreateConnection" + + "\"f\312A!\n\014MigrationJob\022\021OperationMetadata\202\323" + + "\344\223\002<\"7/v1/{name=projects/*/locations/*/m" + + "igrationJobs/*}:start:\001*\022\313\001\n\020StopMigrati" + + "onJob\0221.google.cloud.clouddms.v1.StopMig" + + "rationJobRequest\032\035.google.longrunning.Op" + + "eration\"e\312A!\n\014MigrationJob\022\021OperationMet" + + "adata\202\323\344\223\002;\"6/v1/{name=projects/*/locati" + + "ons/*/migrationJobs/*}:stop:\001*\022\321\001\n\022Resum" + + "eMigrationJob\0223.google.cloud.clouddms.v1" + + ".ResumeMigrationJobRequest\032\035.google.long" + + "running.Operation\"g\312A!\n\014MigrationJob\022\021Op" + + "erationMetadata\202\323\344\223\002=\"8/v1/{name=project" + + "s/*/locations/*/migrationJobs/*}:resume:" + + "\001*\022\324\001\n\023PromoteMigrationJob\0224.google.clou" + + "d.clouddms.v1.PromoteMigrationJobRequest" + + "\032\035.google.longrunning.Operation\"h\312A!\n\014Mi" + + "grationJob\022\021OperationMetadata\202\323\344\223\002>\"9/v1" + + "/{name=projects/*/locations/*/migrationJ" + + "obs/*}:promote:\001*\022\321\001\n\022VerifyMigrationJob" + + "\0223.google.cloud.clouddms.v1.VerifyMigrat" + + "ionJobRequest\032\035.google.longrunning.Opera" + + "tion\"g\312A!\n\014MigrationJob\022\021OperationMetada" + + "ta\202\323\344\223\002=\"8/v1/{name=projects/*/locations" + + "/*/migrationJobs/*}:verify:\001*\022\324\001\n\023Restar" + + "tMigrationJob\0224.google.cloud.clouddms.v1" + + ".RestartMigrationJobRequest\032\035.google.lon" + + "grunning.Operation\"h\312A!\n\014MigrationJob\022\021O" + + "perationMetadata\202\323\344\223\002>\"9/v1/{name=projec" + + "ts/*/locations/*/migrationJobs/*}:restar" + + "t:\001*\022\305\001\n\021GenerateSshScript\0222.google.clou" + + "d.clouddms.v1.GenerateSshScriptRequest\032#" + + ".google.cloud.clouddms.v1.SshScript\"W\202\323\344" + + "\223\002Q\"L/v1/{migration_job=projects/*/locat" + + "ions/*/migrationJobs/*}:generateSshScrip" + + "t:\001*\022\331\001\n\026GenerateTcpProxyScript\0227.google" + + ".cloud.clouddms.v1.GenerateTcpProxyScrip" + + "tRequest\032(.google.cloud.clouddms.v1.TcpP" + + "roxyScript\"\\\202\323\344\223\002V\"Q/v1/{migration_job=p" + + "rojects/*/locations/*/migrationJobs/*}:g" + + "enerateTcpProxyScript:\001*\022\324\001\n\026ListConnect" + + "ionProfiles\0227.google.cloud.clouddms.v1.L" + + "istConnectionProfilesRequest\0328.google.cl" + + "oud.clouddms.v1.ListConnectionProfilesRe" + + "sponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=pro" + + "jects/*/locations/*}/connectionProfiles\022" + + "\301\001\n\024GetConnectionProfile\0225.google.cloud." + + "clouddms.v1.GetConnectionProfileRequest\032" + + "+.google.cloud.clouddms.v1.ConnectionPro" + + "file\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/" + + "*/locations/*/connectionProfiles/*}\022\242\002\n\027" + + "CreateConnectionProfile\0228.google.cloud.c" + + "louddms.v1.CreateConnectionProfileReques" + + "t\032\035.google.longrunning.Operation\"\255\001\312A&\n\021" + + "ConnectionProfile\022\021OperationMetadata\332A/p" + + "arent,connection_profile,connection_prof" + + "ile_id\202\323\344\223\002L\"6/v1/{parent=projects/*/loc" + + "ations/*}/connectionProfiles:\022connection" + + "_profile\022\244\002\n\027UpdateConnectionProfile\0228.g" + + "oogle.cloud.clouddms.v1.UpdateConnection" + "ProfileRequest\032\035.google.longrunning.Oper" - + "ation\"\255\001\312A&\n\021ConnectionProfile\022\021Operatio" - + "nMetadata\332A/parent,connection_profile,co" - + "nnection_profile_id\202\323\344\223\002L\"6/v1/{parent=p" - + "rojects/*/locations/*}/connectionProfile" - + "s:\022connection_profile\022\244\002\n\027UpdateConnecti" - + "onProfile\0228.google.cloud.clouddms.v1.Upd" - + "ateConnectionProfileRequest\032\035.google.lon" - + "grunning.Operation\"\257\001\312A&\n\021ConnectionProf" - + "ile\022\021OperationMetadata\332A\036connection_prof" - + "ile,update_mask\202\323\344\223\002_2I/v1/{connection_p" - + "rofile.name=projects/*/locations/*/conne" - + "ctionProfiles/*}:\022connection_profile\022\346\001\n" - + "\027DeleteConnectionProfile\0228.google.cloud." - + "clouddms.v1.DeleteConnectionProfileReque" - + "st\032\035.google.longrunning.Operation\"r\312A*\n\025" - + "google.protobuf.Empty\022\021OperationMetadata" - + "\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/loca" - + "tions/*/connectionProfiles/*}\022\242\002\n\027Create" - + "PrivateConnection\0228.google.cloud.clouddm" - + "s.v1.CreatePrivateConnectionRequest\032\035.go" - + "ogle.longrunning.Operation\"\255\001\312A&\n\021Privat" - + "eConnection\022\021OperationMetadata\332A/parent," - + "private_connection,private_connection_id" - + "\202\323\344\223\002L\"6/v1/{parent=projects/*/locations" - + "/*}/privateConnections:\022private_connecti" - + "on\022\301\001\n\024GetPrivateConnection\0225.google.clo" - + "ud.clouddms.v1.GetPrivateConnectionReque" - + "st\032+.google.cloud.clouddms.v1.PrivateCon" - + "nection\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projec" - + "ts/*/locations/*/privateConnections/*}\022\324" - + "\001\n\026ListPrivateConnections\0227.google.cloud" - + ".clouddms.v1.ListPrivateConnectionsReque" - + "st\0328.google.cloud.clouddms.v1.ListPrivat" - + "eConnectionsResponse\"G\332A\006parent\202\323\344\223\0028\0226/" - + "v1/{parent=projects/*/locations/*}/priva" - + "teConnections\022\346\001\n\027DeletePrivateConnectio" - + "n\0228.google.cloud.clouddms.v1.DeletePriva" - + "teConnectionRequest\032\035.google.longrunning" - + ".Operation\"r\312A*\n\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\0028*6/v1/{nam" - + "e=projects/*/locations/*/privateConnecti" - + "ons/*}\022\311\001\n\026GetConversionWorkspace\0227.goog" - + "le.cloud.clouddms.v1.GetConversionWorksp" - + "aceRequest\032-.google.cloud.clouddms.v1.Co" - + "nversionWorkspace\"G\332A\004name\202\323\344\223\002:\0228/v1/{n" - + "ame=projects/*/locations/*/conversionWor" - + "kspaces/*}\022\334\001\n\030ListConversionWorkspaces\022" - + "9.google.cloud.clouddms.v1.ListConversio" - + "nWorkspacesRequest\032:.google.cloud.cloudd" - + "ms.v1.ListConversionWorkspacesResponse\"I" - + "\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/" - + "locations/*}/conversionWorkspaces\022\260\002\n\031Cr" - + "eateConversionWorkspace\022:.google.cloud.c" - + "louddms.v1.CreateConversionWorkspaceRequ" - + "est\032\035.google.longrunning.Operation\"\267\001\312A(" - + "\n\023ConversionWorkspace\022\021OperationMetadata" - + "\332A3parent,conversion_workspace,conversio" - + "n_workspace_id\202\323\344\223\002P\"8/v1/{parent=projec" - + "ts/*/locations/*}/conversionWorkspaces:\024" - + "conversion_workspace\022\262\002\n\031UpdateConversio" - + "nWorkspace\022:.google.cloud.clouddms.v1.Up" - + "dateConversionWorkspaceRequest\032\035.google." - + "longrunning.Operation\"\271\001\312A(\n\023ConversionW" - + "orkspace\022\021OperationMetadata\332A conversion" - + "_workspace,update_mask\202\323\344\223\002e2M/v1/{conve" - + "rsion_workspace.name=projects/*/location" - + "s/*/conversionWorkspaces/*}:\024conversion_" - + "workspace\022\354\001\n\031DeleteConversionWorkspace\022" - + ":.google.cloud.clouddms.v1.DeleteConvers" - + "ionWorkspaceRequest\032\035.google.longrunning" - + ".Operation\"t\312A*\n\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\002:*8/v1/{nam" - + "e=projects/*/locations/*/conversionWorks" - + "paces/*}\022\347\001\n\027SeedConversionWorkspace\0228.g" - + "oogle.cloud.clouddms.v1.SeedConversionWo" - + "rkspaceRequest\032\035.google.longrunning.Oper" - + "ation\"s\312A(\n\023ConversionWorkspace\022\021Operati" - + "onMetadata\202\323\344\223\002B\"=/v1/{name=projects/*/l" - + "ocations/*/conversionWorkspaces/*}:seed:" - + "\001*\022\357\001\n\022ImportMappingRules\0223.google.cloud" - + ".clouddms.v1.ImportMappingRulesRequest\032\035" - + ".google.longrunning.Operation\"\204\001\312A(\n\023Con" - + "versionWorkspace\022\021OperationMetadata\202\323\344\223\002" - + "S\"N/v1/{parent=projects/*/locations/*/co" - + "nversionWorkspaces/*}/mappingRules:impor" - + "t:\001*\022\360\001\n\032ConvertConversionWorkspace\022;.go" - + "ogle.cloud.clouddms.v1.ConvertConversion" - + "WorkspaceRequest\032\035.google.longrunning.Op" - + "eration\"v\312A(\n\023ConversionWorkspace\022\021Opera" - + "tionMetadata\202\323\344\223\002E\"@/v1/{name=projects/*" - + "/locations/*/conversionWorkspaces/*}:con" - + "vert:\001*\022\355\001\n\031CommitConversionWorkspace\022:." - + "google.cloud.clouddms.v1.CommitConversio" + + "ation\"\257\001\312A&\n\021ConnectionProfile\022\021Operatio" + + "nMetadata\332A\036connection_profile,update_ma" + + "sk\202\323\344\223\002_2I/v1/{connection_profile.name=p" + + "rojects/*/locations/*/connectionProfiles" + + "/*}:\022connection_profile\022\346\001\n\027DeleteConnec" + + "tionProfile\0228.google.cloud.clouddms.v1.D" + + "eleteConnectionProfileRequest\032\035.google.l" + + "ongrunning.Operation\"r\312A*\n\025google.protob" + + "uf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0028" + + "*6/v1/{name=projects/*/locations/*/conne" + + "ctionProfiles/*}\022\242\002\n\027CreatePrivateConnec" + + "tion\0228.google.cloud.clouddms.v1.CreatePr" + + "ivateConnectionRequest\032\035.google.longrunn" + + "ing.Operation\"\255\001\312A&\n\021PrivateConnection\022\021" + + "OperationMetadata\332A/parent,private_conne" + + "ction,private_connection_id\202\323\344\223\002L\"6/v1/{" + + "parent=projects/*/locations/*}/privateCo" + + "nnections:\022private_connection\022\301\001\n\024GetPri" + + "vateConnection\0225.google.cloud.clouddms.v" + + "1.GetPrivateConnectionRequest\032+.google.c" + + "loud.clouddms.v1.PrivateConnection\"E\332A\004n" + + "ame\202\323\344\223\0028\0226/v1/{name=projects/*/location" + + "s/*/privateConnections/*}\022\324\001\n\026ListPrivat" + + "eConnections\0227.google.cloud.clouddms.v1." + + "ListPrivateConnectionsRequest\0328.google.c" + + "loud.clouddms.v1.ListPrivateConnectionsR" + + "esponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=pr" + + "ojects/*/locations/*}/privateConnections" + + "\022\346\001\n\027DeletePrivateConnection\0228.google.cl" + + "oud.clouddms.v1.DeletePrivateConnectionR" + + "equest\032\035.google.longrunning.Operation\"r\312" + + "A*\n\025google.protobuf.Empty\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/" + + "locations/*/privateConnections/*}\022\311\001\n\026Ge" + + "tConversionWorkspace\0227.google.cloud.clou" + + "ddms.v1.GetConversionWorkspaceRequest\032-." + + "google.cloud.clouddms.v1.ConversionWorks" + + "pace\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=projects/" + + "*/locations/*/conversionWorkspaces/*}\022\334\001" + + "\n\030ListConversionWorkspaces\0229.google.clou" + + "d.clouddms.v1.ListConversionWorkspacesRe" + + "quest\032:.google.cloud.clouddms.v1.ListCon" + + "versionWorkspacesResponse\"I\332A\006parent\202\323\344\223" + + "\002:\0228/v1/{parent=projects/*/locations/*}/" + + "conversionWorkspaces\022\260\002\n\031CreateConversio" + + "nWorkspace\022:.google.cloud.clouddms.v1.Cr" + + "eateConversionWorkspaceRequest\032\035.google." + + "longrunning.Operation\"\267\001\312A(\n\023ConversionW" + + "orkspace\022\021OperationMetadata\332A3parent,con" + + "version_workspace,conversion_workspace_i" + + "d\202\323\344\223\002P\"8/v1/{parent=projects/*/location" + + "s/*}/conversionWorkspaces:\024conversion_wo" + + "rkspace\022\262\002\n\031UpdateConversionWorkspace\022:." + + "google.cloud.clouddms.v1.UpdateConversio" + "nWorkspaceRequest\032\035.google.longrunning.O" - + "peration\"u\312A(\n\023ConversionWorkspace\022\021Oper" - + "ationMetadata\202\323\344\223\002D\"?/v1/{name=projects/" - + "*/locations/*/conversionWorkspaces/*}:co" - + "mmit:\001*\022\363\001\n\033RollbackConversionWorkspace\022" - + "<.google.cloud.clouddms.v1.RollbackConve" - + "rsionWorkspaceRequest\032\035.google.longrunni" - + "ng.Operation\"w\312A(\n\023ConversionWorkspace\022\021" - + "OperationMetadata\202\323\344\223\002F\"A/v1/{name=proje" - + "cts/*/locations/*/conversionWorkspaces/*" - + "}:rollback:\001*\022\352\001\n\030ApplyConversionWorkspa" - + "ce\0229.google.cloud.clouddms.v1.ApplyConve" - + "rsionWorkspaceRequest\032\035.google.longrunni" - + "ng.Operation\"t\312A(\n\023ConversionWorkspace\022\021" - + "OperationMetadata\202\323\344\223\002C\">/v1/{name=proje" - + "cts/*/locations/*/conversionWorkspaces/*" - + "}:apply:\001*\022\374\001\n\030DescribeDatabaseEntities\022" - + "9.google.cloud.clouddms.v1.DescribeDatab" - + "aseEntitiesRequest\032:.google.cloud.cloudd" - + "ms.v1.DescribeDatabaseEntitiesResponse\"i" - + "\202\323\344\223\002c\022a/v1/{conversion_workspace=projec" - + "ts/*/locations/*/conversionWorkspaces/*}" - + ":describeDatabaseEntities\022\354\001\n\024SearchBack" - + "groundJobs\0225.google.cloud.clouddms.v1.Se" - + "archBackgroundJobsRequest\0326.google.cloud" - + ".clouddms.v1.SearchBackgroundJobsRespons" - + "e\"e\202\323\344\223\002_\022]/v1/{conversion_workspace=pro", - "jects/*/locations/*/conversionWorkspaces" - + "/*}:searchBackgroundJobs\022\254\002\n$DescribeCon" - + "versionWorkspaceRevisions\022E.google.cloud" - + ".clouddms.v1.DescribeConversionWorkspace" - + "RevisionsRequest\032F.google.cloud.clouddms" - + ".v1.DescribeConversionWorkspaceRevisions" - + "Response\"u\202\323\344\223\002o\022m/v1/{conversion_worksp" - + "ace=projects/*/locations/*/conversionWor" - + "kspaces/*}:describeConversionWorkspaceRe" - + "visions\022\264\001\n\016FetchStaticIps\022/.google.clou" - + "d.clouddms.v1.FetchStaticIpsRequest\0320.go" - + "ogle.cloud.clouddms.v1.FetchStaticIpsRes" - + "ponse\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects" - + "/*/locations/*}:fetchStaticIps\032P\312A\034datam" - + "igration.googleapis.com\322A.https://www.go" - + "ogleapis.com/auth/cloud-platformB\275\001\n\034com" - + ".google.cloud.clouddms.v1B\rClouddmsProto" - + "P\001Z8cloud.google.com/go/clouddms/apiv1/c" - + "louddmspb;clouddmspb\252\002\030Google.Cloud.Clou" - + "dDms.V1\312\002\030Google\\Cloud\\CloudDms\\V1\352\002\033Goo" - + "gle::Cloud::CloudDMS::V1b\006proto3" + + "peration\"\271\001\312A(\n\023ConversionWorkspace\022\021Ope" + + "rationMetadata\332A conversion_workspace,up" + + "date_mask\202\323\344\223\002e2M/v1/{conversion_workspa" + + "ce.name=projects/*/locations/*/conversio" + + "nWorkspaces/*}:\024conversion_workspace\022\354\001\n" + + "\031DeleteConversionWorkspace\022:.google.clou" + + "d.clouddms.v1.DeleteConversionWorkspaceR" + + "equest\032\035.google.longrunning.Operation\"t\312" + + "A*\n\025google.protobuf.Empty\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*/" + + "locations/*/conversionWorkspaces/*}\022\364\001\n\021" + + "CreateMappingRule\0222.google.cloud.clouddm" + + "s.v1.CreateMappingRuleRequest\032%.google.c", + "loud.clouddms.v1.MappingRule\"\203\001\332A#parent" + + ",mapping_rule,mapping_rule_id\202\323\344\223\002W\"G/v1" + + "/{parent=projects/*/locations/*/conversi" + + "onWorkspaces/*}/mappingRules:\014mapping_ru" + + "le\022\267\001\n\021DeleteMappingRule\0222.google.cloud." + + "clouddms.v1.DeleteMappingRuleRequest\032\026.g" + + "oogle.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1" + + "/{name=projects/*/locations/*/conversion" + + "Workspaces/*/mappingRules/*}\022\323\001\n\020ListMap" + + "pingRules\0221.google.cloud.clouddms.v1.Lis" + + "tMappingRulesRequest\0322.google.cloud.clou" + + "ddms.v1.ListMappingRulesResponse\"X\332A\006par" + + "ent\202\323\344\223\002I\022G/v1/{parent=projects/*/locati" + + "ons/*/conversionWorkspaces/*}/mappingRul" + + "es\022\300\001\n\016GetMappingRule\022/.google.cloud.clo" + + "uddms.v1.GetMappingRuleRequest\032%.google." + + "cloud.clouddms.v1.MappingRule\"V\332A\004name\202\323" + + "\344\223\002I\022G/v1/{name=projects/*/locations/*/c" + + "onversionWorkspaces/*/mappingRules/*}\022\347\001" + + "\n\027SeedConversionWorkspace\0228.google.cloud" + + ".clouddms.v1.SeedConversionWorkspaceRequ" + + "est\032\035.google.longrunning.Operation\"s\312A(\n" + + "\023ConversionWorkspace\022\021OperationMetadata\202" + + "\323\344\223\002B\"=/v1/{name=projects/*/locations/*/" + + "conversionWorkspaces/*}:seed:\001*\022\357\001\n\022Impo" + + "rtMappingRules\0223.google.cloud.clouddms.v" + + "1.ImportMappingRulesRequest\032\035.google.lon" + + "grunning.Operation\"\204\001\312A(\n\023ConversionWork" + + "space\022\021OperationMetadata\202\323\344\223\002S\"N/v1/{par" + + "ent=projects/*/locations/*/conversionWor" + + "kspaces/*}/mappingRules:import:\001*\022\360\001\n\032Co" + + "nvertConversionWorkspace\022;.google.cloud." + + "clouddms.v1.ConvertConversionWorkspaceRe" + + "quest\032\035.google.longrunning.Operation\"v\312A" + + "(\n\023ConversionWorkspace\022\021OperationMetadat" + + "a\202\323\344\223\002E\"@/v1/{name=projects/*/locations/" + + "*/conversionWorkspaces/*}:convert:\001*\022\355\001\n" + + "\031CommitConversionWorkspace\022:.google.clou" + + "d.clouddms.v1.CommitConversionWorkspaceR" + + "equest\032\035.google.longrunning.Operation\"u\312" + + "A(\n\023ConversionWorkspace\022\021OperationMetada" + + "ta\202\323\344\223\002D\"?/v1/{name=projects/*/locations" + + "/*/conversionWorkspaces/*}:commit:\001*\022\363\001\n" + + "\033RollbackConversionWorkspace\022<.google.cl" + + "oud.clouddms.v1.RollbackConversionWorksp" + + "aceRequest\032\035.google.longrunning.Operatio" + + "n\"w\312A(\n\023ConversionWorkspace\022\021OperationMe" + + "tadata\202\323\344\223\002F\"A/v1/{name=projects/*/locat" + + "ions/*/conversionWorkspaces/*}:rollback:" + + "\001*\022\352\001\n\030ApplyConversionWorkspace\0229.google" + + ".cloud.clouddms.v1.ApplyConversionWorksp" + + "aceRequest\032\035.google.longrunning.Operatio" + + "n\"t\312A(\n\023ConversionWorkspace\022\021OperationMe" + + "tadata\202\323\344\223\002C\">/v1/{name=projects/*/locat" + + "ions/*/conversionWorkspaces/*}:apply:\001*\022" + + "\374\001\n\030DescribeDatabaseEntities\0229.google.cl" + + "oud.clouddms.v1.DescribeDatabaseEntities" + + "Request\032:.google.cloud.clouddms.v1.Descr" + + "ibeDatabaseEntitiesResponse\"i\202\323\344\223\002c\022a/v1" + + "/{conversion_workspace=projects/*/locati" + + "ons/*/conversionWorkspaces/*}:describeDa" + + "tabaseEntities\022\354\001\n\024SearchBackgroundJobs\022" + + "5.google.cloud.clouddms.v1.SearchBackgro" + + "undJobsRequest\0326.google.cloud.clouddms.v" + + "1.SearchBackgroundJobsResponse\"e\202\323\344\223\002_\022]" + + "/v1/{conversion_workspace=projects/*/loc" + + "ations/*/conversionWorkspaces/*}:searchB" + + "ackgroundJobs\022\254\002\n$DescribeConversionWork" + + "spaceRevisions\022E.google.cloud.clouddms.v" + + "1.DescribeConversionWorkspaceRevisionsRe" + + "quest\032F.google.cloud.clouddms.v1.Describ" + + "eConversionWorkspaceRevisionsResponse\"u\202" + + "\323\344\223\002o\022m/v1/{conversion_workspace=project" + + "s/*/locations/*/conversionWorkspaces/*}:" + + "describeConversionWorkspaceRevisions\022\264\001\n" + + "\016FetchStaticIps\022/.google.cloud.clouddms." + + "v1.FetchStaticIpsRequest\0320.google.cloud." + + "clouddms.v1.FetchStaticIpsResponse\"?\332A\004n" + + "ame\202\323\344\223\0022\0220/v1/{name=projects/*/location" + + "s/*}:fetchStaticIps\032P\312A\034datamigration.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\275\001\n\034com.google.clo" + + "ud.clouddms.v1B\rClouddmsProtoP\001Z8cloud.g" + + "oogle.com/go/clouddms/apiv1/clouddmspb;c" + + "louddmspb\252\002\030Google.Cloud.CloudDms.V1\312\002\030G" + + "oogle\\Cloud\\CloudDms\\V1\352\002\033Google::Cloud:" + + ":CloudDMS::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -665,6 +759,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -722,7 +817,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "SkipValidation", }); internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor = getDescriptor().getMessageTypes().get(7); @@ -754,7 +849,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "UpdateMask", "MigrationJob", }); internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor = getDescriptor().getMessageTypes().get(11); @@ -762,7 +857,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "SkipValidation", }); internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor = getDescriptor().getMessageTypes().get(12); @@ -796,8 +891,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Script", }); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor = + internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_descriptor, + new java.lang.String[] { + "MigrationJob", "VmName", "VmMachineType", "VmZone", "VmSubnet", + }); + internal_static_google_cloud_clouddms_v1_TcpProxyScript_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_clouddms_v1_TcpProxyScript_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_TcpProxyScript_descriptor, + new java.lang.String[] { + "Script", + }); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor, @@ -805,7 +916,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor, @@ -813,7 +924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConnectionProfiles", "NextPageToken", "Unreachable", }); internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor, @@ -821,7 +932,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor, @@ -834,7 +945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SkipValidation", }); internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor, @@ -842,7 +953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "ConnectionProfile", "RequestId", "ValidateOnly", "SkipValidation", }); internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor, @@ -850,7 +961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Force", }); internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor, @@ -858,7 +969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", "SkipValidation", }); internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor, @@ -866,7 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor, @@ -874,7 +985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateConnections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor, @@ -882,7 +993,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor, @@ -890,7 +1001,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor, @@ -904,7 +1015,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor, @@ -912,7 +1023,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor, @@ -920,7 +1031,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionWorkspaces", "NextPageToken", "Unreachable", }); internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor, @@ -928,7 +1039,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor, @@ -936,7 +1047,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ConversionWorkspaceId", "ConversionWorkspace", "RequestId", }); internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor, @@ -944,15 +1055,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "ConversionWorkspace", "RequestId", }); internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor, new java.lang.String[] { - "Name", "RequestId", + "Name", "RequestId", "Force", }); internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor, @@ -960,7 +1071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CommitName", }); internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor, @@ -968,15 +1079,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor, new java.lang.String[] { - "Name", "Filter", "ConnectionProfile", "Destination", + "Name", "Filter", "DryRun", "AutoCommit", "ConnectionProfile", "Destination", + }); + internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_descriptor, + new java.lang.String[] { + "MappingRules", "NextPageToken", + }); + internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_descriptor, + new java.lang.String[] { + "Name", }); internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor, @@ -988,15 +1123,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SeedFrom", }); internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor, new java.lang.String[] { - "Name", "AutoCommit", "Filter", + "Name", "AutoCommit", "Filter", "ConvertFullPath", }); internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor, @@ -1014,7 +1149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RulesSourceFilename", "RulesContent", }); internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor, @@ -1026,9 +1161,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uncommitted", "CommitId", "Filter", + "View", }); internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor, @@ -1036,7 +1172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseEntities", "NextPageToken", }); internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor, @@ -1044,7 +1180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionWorkspace", "ReturnMostRecentPerJobType", "MaxSize", "CompletedUntilTime", }); internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor, @@ -1052,7 +1188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Jobs", }); internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor, @@ -1060,15 +1196,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionWorkspace", "CommitId", }); internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor, new java.lang.String[] { "Revisions", }); + internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_descriptor, + new java.lang.String[] { + "Parent", "MappingRuleId", "MappingRule", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor, @@ -1076,7 +1228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor, @@ -1101,6 +1253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java index 8df13ed6c627..f653c0add944 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java @@ -147,6 +147,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -218,259 +222,274 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1.StaticIpConnectivityH\000\022k\n$private_serv" + "ice_connect_connectivity\030e \001(\0132;.google." + "cloud.clouddms.v1.PrivateServiceConnectC" - + "onnectivityH\000B\016\n\014connectivity\"\312\003\n\027Oracle" + + "onnectivityH\000B\016\n\014connectivity\"\374\003\n\027Oracle" + "ConnectionProfile\022\022\n\004host\030\001 \001(\tB\004\342A\001\002\022\022\n" + "\004port\030\002 \001(\005B\004\342A\001\002\022\026\n\010username\030\003 \001(\tB\004\342A\001" + "\002\022\027\n\010password\030\004 \001(\tB\005\342A\002\004\002\022\032\n\014password_s" + "et\030\005 \001(\010B\004\342A\001\003\022\036\n\020database_service\030\006 \001(\t" - + "B\004\342A\001\002\022_\n\036static_service_ip_connectivity" - + "\030d \001(\01325.google.cloud.clouddms.v1.Static" - + "ServiceIpConnectivityH\000\022Z\n\030forward_ssh_c" - + "onnectivity\030e \001(\01326.google.cloud.clouddm" - + "s.v1.ForwardSshTunnelConnectivityH\000\022M\n\024p" - + "rivate_connectivity\030f \001(\0132-.google.cloud" - + ".clouddms.v1.PrivateConnectivityH\000B\016\n\014co" - + "nnectivity\"\322\001\n\031CloudSqlConnectionProfile" - + "\022\032\n\014cloud_sql_id\030\001 \001(\tB\004\342A\001\003\022B\n\010settings" - + "\030\002 \001(\0132*.google.cloud.clouddms.v1.CloudS" - + "qlSettingsB\004\342A\001\005\022\030\n\nprivate_ip\030\003 \001(\tB\004\342A" - + "\001\003\022\027\n\tpublic_ip\030\004 \001(\tB\004\342A\001\003\022\"\n\024additiona" - + "l_public_ip\030\005 \001(\tB\004\342A\001\003\"w\n\030AlloyDbConnec" - + "tionProfile\022\030\n\ncluster_id\030\001 \001(\tB\004\342A\001\002\022A\n" - + "\010settings\030\002 \001(\0132).google.cloud.clouddms." - + "v1.AlloyDbSettingsB\004\342A\001\005\"\234\001\n\013SqlAclEntry" - + "\022\r\n\005value\030\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.g" - + "oogle.protobuf.TimestampH\000\022.\n\003ttl\030\013 \001(\0132" - + "\031.google.protobuf.DurationB\004\342A\001\004H\000\022\r\n\005la" - + "bel\030\003 \001(\tB\014\n\nexpiration\"\356\001\n\013SqlIpConfig\022" - + "/\n\013enable_ipv4\030\001 \001(\0132\032.google.protobuf.B" - + "oolValue\022\027\n\017private_network\030\002 \001(\t\022 \n\022all" - + "ocated_ip_range\030\005 \001(\tB\004\342A\001\001\022/\n\013require_s" - + "sl\030\003 \001(\0132\032.google.protobuf.BoolValue\022B\n\023" - + "authorized_networks\030\004 \003(\0132%.google.cloud" - + ".clouddms.v1.SqlAclEntry\"\372\013\n\020CloudSqlSet" - + "tings\022W\n\020database_version\030\001 \001(\0162=.google" - + ".cloud.clouddms.v1.CloudSqlSettings.SqlD" - + "atabaseVersion\022O\n\013user_labels\030\002 \003(\0132:.go" - + "ogle.cloud.clouddms.v1.CloudSqlSettings." - + "UserLabelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031storage" - + "_auto_resize_limit\030\004 \001(\0132\033.google.protob" - + "uf.Int64Value\022Y\n\021activation_policy\030\005 \001(\016" - + "2>.google.cloud.clouddms.v1.CloudSqlSett" - + "ings.SqlActivationPolicy\0228\n\tip_config\030\006 " - + "\001(\0132%.google.cloud.clouddms.v1.SqlIpConf" - + "ig\0229\n\025auto_storage_increase\030\007 \001(\0132\032.goog" - + "le.protobuf.BoolValue\022U\n\016database_flags\030" - + "\010 \003(\0132=.google.cloud.clouddms.v1.CloudSq" - + "lSettings.DatabaseFlagsEntry\022R\n\016data_dis" - + "k_type\030\t \001(\0162:.google.cloud.clouddms.v1." - + "CloudSqlSettings.SqlDataDiskType\0226\n\021data" - + "_disk_size_gb\030\n \001(\0132\033.google.protobuf.In" - + "t64Value\022\014\n\004zone\030\013 \001(\t\022\034\n\016secondary_zone" - + "\030\022 \001(\tB\004\342A\001\001\022\021\n\tsource_id\030\014 \001(\t\022\033\n\rroot_" - + "password\030\r \001(\tB\004\342A\001\004\022\037\n\021root_password_se" - + "t\030\016 \001(\010B\004\342A\001\003\022\021\n\tcollation\030\017 \001(\t\022\025\n\rcmek" - + "_key_name\030\020 \001(\t\022_\n\021availability_type\030\021 \001" - + "(\0162>.google.cloud.clouddms.v1.CloudSqlSe" - + "ttings.SqlAvailabilityTypeB\004\342A\001\001\0321\n\017User" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationPolicy" - + "\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFIED\020\000\022" - + "\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDiskTyp" - + "e\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\316\001\n\022SqlDatabaseVer" - + "sion\022$\n SQL_DATABASE_VERSION_UNSPECIFIED" - + "\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n\014POST" - + "GRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POSTGRES_" - + "10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020\007\022\017\n\013" - + "POSTGRES_13\020\010\022\017\n\013POSTGRES_14\020\021\"U\n\023SqlAva" - + "ilabilityType\022%\n!SQL_AVAILABILITY_TYPE_U" - + "NSPECIFIED\020\000\022\t\n\005ZONAL\020\001\022\014\n\010REGIONAL\020\002\"\267\010" - + "\n\017AlloyDbSettings\022S\n\014initial_user\030\001 \001(\0132" - + "6.google.cloud.clouddms.v1.AlloyDbSettin" - + "gs.UserPasswordB\005\342A\002\002\004\022\031\n\013vpc_network\030\002 " - + "\001(\tB\004\342A\001\002\022E\n\006labels\030\003 \003(\01325.google.cloud" - + ".clouddms.v1.AlloyDbSettings.LabelsEntry" - + "\022d\n\031primary_instance_settings\030\004 \001(\0132A.go" - + "ogle.cloud.clouddms.v1.AlloyDbSettings.P" - + "rimaryInstanceSettings\022[\n\021encryption_con" - + "fig\030\005 \001(\0132:.google.cloud.clouddms.v1.All" - + "oyDbSettings.EncryptionConfigB\004\342A\001\001\032J\n\014U" - + "serPassword\022\014\n\004user\030\001 \001(\t\022\020\n\010password\030\002 " - + "\001(\t\022\032\n\014password_set\030\003 \001(\010B\004\342A\001\003\032\204\004\n\027Prim" - + "aryInstanceSettings\022\020\n\002id\030\001 \001(\tB\004\342A\001\002\022g\n" - + "\016machine_config\030\002 \001(\0132O.google.cloud.clo" + + "B\004\342A\001\002\0220\n\003ssl\030\007 \001(\0132#.google.cloud.cloud" + + "dms.v1.SslConfig\022_\n\036static_service_ip_co" + + "nnectivity\030d \001(\01325.google.cloud.clouddms" + + ".v1.StaticServiceIpConnectivityH\000\022Z\n\030for" + + "ward_ssh_connectivity\030e \001(\01326.google.clo" + + "ud.clouddms.v1.ForwardSshTunnelConnectiv" + + "ityH\000\022M\n\024private_connectivity\030f \001(\0132-.go" + + "ogle.cloud.clouddms.v1.PrivateConnectivi" + + "tyH\000B\016\n\014connectivity\"\322\001\n\031CloudSqlConnect" + + "ionProfile\022\032\n\014cloud_sql_id\030\001 \001(\tB\004\342A\001\003\022B" + + "\n\010settings\030\002 \001(\0132*.google.cloud.clouddms" + + ".v1.CloudSqlSettingsB\004\342A\001\005\022\030\n\nprivate_ip" + + "\030\003 \001(\tB\004\342A\001\003\022\027\n\tpublic_ip\030\004 \001(\tB\004\342A\001\003\022\"\n" + + "\024additional_public_ip\030\005 \001(\tB\004\342A\001\003\"w\n\030All" + + "oyDbConnectionProfile\022\030\n\ncluster_id\030\001 \001(" + + "\tB\004\342A\001\002\022A\n\010settings\030\002 \001(\0132).google.cloud" + + ".clouddms.v1.AlloyDbSettingsB\004\342A\001\005\"\234\001\n\013S" + + "qlAclEntry\022\r\n\005value\030\001 \001(\t\0221\n\013expire_time" + + "\030\n \001(\0132\032.google.protobuf.TimestampH\000\022.\n\003" + + "ttl\030\013 \001(\0132\031.google.protobuf.DurationB\004\342A" + + "\001\004H\000\022\r\n\005label\030\003 \001(\tB\014\n\nexpiration\"\356\001\n\013Sq" + + "lIpConfig\022/\n\013enable_ipv4\030\001 \001(\0132\032.google." + + "protobuf.BoolValue\022\027\n\017private_network\030\002 " + + "\001(\t\022 \n\022allocated_ip_range\030\005 \001(\tB\004\342A\001\001\022/\n" + + "\013require_ssl\030\003 \001(\0132\032.google.protobuf.Boo" + + "lValue\022B\n\023authorized_networks\030\004 \003(\0132%.go" + + "ogle.cloud.clouddms.v1.SqlAclEntry\"\237\r\n\020C" + + "loudSqlSettings\022W\n\020database_version\030\001 \001(" + + "\0162=.google.cloud.clouddms.v1.CloudSqlSet" + + "tings.SqlDatabaseVersion\022O\n\013user_labels\030" + + "\002 \003(\0132:.google.cloud.clouddms.v1.CloudSq" + + "lSettings.UserLabelsEntry\022\014\n\004tier\030\003 \001(\t\022" + + ">\n\031storage_auto_resize_limit\030\004 \001(\0132\033.goo" + + "gle.protobuf.Int64Value\022Y\n\021activation_po" + + "licy\030\005 \001(\0162>.google.cloud.clouddms.v1.Cl" + + "oudSqlSettings.SqlActivationPolicy\0228\n\tip" + + "_config\030\006 \001(\0132%.google.cloud.clouddms.v1" + + ".SqlIpConfig\0229\n\025auto_storage_increase\030\007 " + + "\001(\0132\032.google.protobuf.BoolValue\022U\n\016datab" + + "ase_flags\030\010 \003(\0132=.google.cloud.clouddms." + + "v1.CloudSqlSettings.DatabaseFlagsEntry\022R" + + "\n\016data_disk_type\030\t \001(\0162:.google.cloud.cl" + + "ouddms.v1.CloudSqlSettings.SqlDataDiskTy" + + "pe\0226\n\021data_disk_size_gb\030\n \001(\0132\033.google.p" + + "rotobuf.Int64Value\022\014\n\004zone\030\013 \001(\t\022\034\n\016seco" + + "ndary_zone\030\022 \001(\tB\004\342A\001\001\022\021\n\tsource_id\030\014 \001(" + + "\t\022\033\n\rroot_password\030\r \001(\tB\004\342A\001\004\022\037\n\021root_p" + + "assword_set\030\016 \001(\010B\004\342A\001\003\022\021\n\tcollation\030\017 \001" + + "(\t\022\025\n\rcmek_key_name\030\020 \001(\t\022_\n\021availabilit" + + "y_type\030\021 \001(\0162>.google.cloud.clouddms.v1." + + "CloudSqlSettings.SqlAvailabilityTypeB\004\342A" + + "\001\001\022I\n\007edition\030\023 \001(\01622.google.cloud.cloud" + + "dms.v1.CloudSqlSettings.EditionB\004\342A\001\001\0321\n" + + "\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationP" + + "olicy\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFI" + + "ED\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDi" + + "skType\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED" + + "\020\000\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\337\001\n\022SqlDataba" + + "seVersion\022$\n SQL_DATABASE_VERSION_UNSPEC" + + "IFIED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n" + + "\014POSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POST" + + "GRES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020" + + "\007\022\017\n\013POSTGRES_13\020\010\022\017\n\013POSTGRES_14\020\021\022\017\n\013P" + + "OSTGRES_15\020\022\"U\n\023SqlAvailabilityType\022%\n!S" + + "QL_AVAILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n\005ZO" + + "NAL\020\001\022\014\n\010REGIONAL\020\002\"G\n\007Edition\022\027\n\023EDITIO" + + "N_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\002\022\023\n\017ENTER" + + "PRISE_PLUS\020\003\"\267\010\n\017AlloyDbSettings\022S\n\014init" + + "ial_user\030\001 \001(\01326.google.cloud.clouddms.v" + + "1.AlloyDbSettings.UserPasswordB\005\342A\002\002\004\022\031\n" + + "\013vpc_network\030\002 \001(\tB\004\342A\001\002\022E\n\006labels\030\003 \003(\013" + + "25.google.cloud.clouddms.v1.AlloyDbSetti" + + "ngs.LabelsEntry\022d\n\031primary_instance_sett" + + "ings\030\004 \001(\0132A.google.cloud.clouddms.v1.Al" + + "loyDbSettings.PrimaryInstanceSettings\022[\n" + + "\021encryption_config\030\005 \001(\0132:.google.cloud." + + "clouddms.v1.AlloyDbSettings.EncryptionCo" + + "nfigB\004\342A\001\001\032J\n\014UserPassword\022\014\n\004user\030\001 \001(\t" + + "\022\020\n\010password\030\002 \001(\t\022\032\n\014password_set\030\003 \001(\010" + + "B\004\342A\001\003\032\204\004\n\027PrimaryInstanceSettings\022\020\n\002id" + + "\030\001 \001(\tB\004\342A\001\002\022g\n\016machine_config\030\002 \001(\0132O.g" + + "oogle.cloud.clouddms.v1.AlloyDbSettings." + + "PrimaryInstanceSettings.MachineConfig\022l\n" + + "\016database_flags\030\006 \003(\0132T.google.cloud.clo" + "uddms.v1.AlloyDbSettings.PrimaryInstance" - + "Settings.MachineConfig\022l\n\016database_flags" - + "\030\006 \003(\0132T.google.cloud.clouddms.v1.AlloyD" - + "bSettings.PrimaryInstanceSettings.Databa" - + "seFlagsEntry\022]\n\006labels\030\007 \003(\0132M.google.cl" - + "oud.clouddms.v1.AlloyDbSettings.PrimaryI" - + "nstanceSettings.LabelsEntry\022\030\n\nprivate_i" - + "p\030\010 \001(\tB\004\342A\001\003\032\"\n\rMachineConfig\022\021\n\tcpu_co" - + "unt\030\001 \001(\005\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032(\n\020Encryp" - + "tionConfig\022\024\n\014kms_key_name\030\001 \001(\t\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "\026\n\024StaticIpConnectivity\"E\n!PrivateServic" - + "eConnectConnectivity\022 \n\022service_attachme" - + "nt\030\001 \001(\tB\004\342A\001\002\"]\n\026ReverseSshConnectivity" - + "\022\023\n\005vm_ip\030\001 \001(\tB\004\342A\001\002\022\025\n\007vm_port\030\002 \001(\005B\004" - + "\342A\001\002\022\n\n\002vm\030\003 \001(\t\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeer" - + "ingConnectivity\022\013\n\003vpc\030\001 \001(\t\"\254\001\n\034Forward" - + "SshTunnelConnectivity\022\026\n\010hostname\030\001 \001(\tB" - + "\004\342A\001\002\022\026\n\010username\030\002 \001(\tB\004\342A\001\002\022\014\n\004port\030\003 " - + "\001(\005\022\030\n\010password\030d \001(\tB\004\342A\001\004H\000\022\033\n\013private" - + "_key\030e \001(\tB\004\342A\001\004H\000B\027\n\025authentication_met" - + "hod\"\035\n\033StaticServiceIpConnectivity\"7\n\023Pr" - + "ivateConnectivity\022 \n\022private_connection\030" - + "\001 \001(\tB\004\342A\001\002\"\206\001\n\014DatabaseType\022<\n\010provider" - + "\030\001 \001(\0162*.google.cloud.clouddms.v1.Databa" - + "seProvider\0228\n\006engine\030\002 \001(\0162(.google.clou" - + "d.clouddms.v1.DatabaseEngine\"\256\017\n\014Migrati" - + "onJob\022\014\n\004name\030\001 \001(\t\0225\n\013create_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013up" - + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\022B\n\006labels\030\004 \003(\01322.google.cloud" - + ".clouddms.v1.MigrationJob.LabelsEntry\022\024\n" - + "\014display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goo" - + "gle.cloud.clouddms.v1.MigrationJob.State" - + "\022A\n\005phase\030\007 \001(\0162,.google.cloud.clouddms." - + "v1.MigrationJob.PhaseB\004\342A\001\003\022?\n\004type\030\010 \001(" - + "\0162+.google.cloud.clouddms.v1.MigrationJo" - + "b.TypeB\004\342A\001\002\022\021\n\tdump_path\030\t \001(\t\022D\n\ndump_" - + "flags\030\021 \001(\01320.google.cloud.clouddms.v1.M" - + "igrationJob.DumpFlags\022\024\n\006source\030\n \001(\tB\004\342" - + "A\001\002\022\031\n\013destination\030\013 \001(\tB\004\342A\001\002\022T\n\030revers" - + "e_ssh_connectivity\030e \001(\01320.google.cloud." - + "clouddms.v1.ReverseSshConnectivityH\000\022T\n\030" - + "vpc_peering_connectivity\030f \001(\01320.google." - + "cloud.clouddms.v1.VpcPeeringConnectivity" - + "H\000\022P\n\026static_ip_connectivity\030g \001(\0132..goo" - + "gle.cloud.clouddms.v1.StaticIpConnectivi" - + "tyH\000\0221\n\010duration\030\014 \001(\0132\031.google.protobuf" - + ".DurationB\004\342A\001\003\022\'\n\005error\030\r \001(\0132\022.google." - + "rpc.StatusB\004\342A\001\003\022?\n\017source_database\030\016 \001(" - + "\0132&.google.cloud.clouddms.v1.DatabaseTyp" - + "e\022D\n\024destination_database\030\017 \001(\0132&.google" - + ".cloud.clouddms.v1.DatabaseType\0222\n\010end_t" - + "ime\030\020 \001(\0132\032.google.protobuf.TimestampB\004\342" - + "A\001\003\022O\n\024conversion_workspace\030\022 \001(\01321.goog" - + "le.cloud.clouddms.v1.ConversionWorkspace" - + "Info\022\016\n\006filter\030\024 \001(\t\022\025\n\rcmek_key_name\030\025 " - + "\001(\t\032\'\n\010DumpFlag\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t\032P\n\tDumpFlags\022C\n\ndump_flags\030\001 \003(\0132/." - + "google.cloud.clouddms.v1.MigrationJob.Du" - + "mpFlag\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CR" - + "EATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n" - + "\n\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022" - + "\014\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022" - + "\014\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTIN" - + "G\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNS" - + "PECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PR" - + "OMOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SOURC" - + "E_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP" - + "\020\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_" - + "TIME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigrati" - + "on.googleapis.com/MigrationJob\022Eprojects" - + "/{project}/locations/{location}/migratio" - + "nJobs/{migration_job}B\016\n\014connectivity\":\n" - + "\027ConversionWorkspaceInfo\022\014\n\004name\030\001 \001(\t\022\021" - + "\n\tcommit_id\030\002 \001(\t\"\302\010\n\021ConnectionProfile\022" - + "\014\n\004name\030\001 \001(\t\0225\n\013create_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\004\342A\001\003\0225\n\013update_t" - + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342" - + "A\001\003\022G\n\006labels\030\004 \003(\01327.google.cloud.cloud" - + "dms.v1.ConnectionProfile.LabelsEntry\022@\n\005" - + "state\030\005 \001(\01621.google.cloud.clouddms.v1.C" - + "onnectionProfile.State\022\024\n\014display_name\030\006" - + " \001(\t\022A\n\005mysql\030d \001(\01320.google.cloud.cloud" - + "dms.v1.MySqlConnectionProfileH\000\022K\n\npostg" - + "resql\030e \001(\01325.google.cloud.clouddms.v1.P" - + "ostgreSqlConnectionProfileH\000\022C\n\006oracle\030h" - + " \001(\01321.google.cloud.clouddms.v1.OracleCo" - + "nnectionProfileH\000\022G\n\010cloudsql\030f \001(\01323.go" - + "ogle.cloud.clouddms.v1.CloudSqlConnectio" - + "nProfileH\000\022E\n\007alloydb\030i \001(\01322.google.clo" - + "ud.clouddms.v1.AlloyDbConnectionProfileH" - + "\000\022\'\n\005error\030\007 \001(\0132\022.google.rpc.StatusB\004\342A" - + "\001\003\022<\n\010provider\030\010 \001(\0162*.google.cloud.clou" - + "ddms.v1.DatabaseProvider\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CR" - + "EATING\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DEL" - + "ETING\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n" - + ".datamigration.googleapis.com/Connection" - + "Profile\022Oprojects/{project}/locations/{l" - + "ocation}/connectionProfiles/{connection_" - + "profile}B\024\n\022connection_profile\"\356\007\n\035Migra" - + "tionJobVerificationError\022[\n\nerror_code\030\001" - + " \001(\0162A.google.cloud.clouddms.v1.Migratio" - + "nJobVerificationError.ErrorCodeB\004\342A\001\003\022\033\n" - + "\rerror_message\030\002 \001(\tB\004\342A\001\003\022\"\n\024error_deta" - + "il_message\030\003 \001(\tB\004\342A\001\003\"\256\006\n\tErrorCode\022\032\n\026" - + "ERROR_CODE_UNSPECIFIED\020\000\022\026\n\022CONNECTION_F" - + "AILURE\020\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022%\n!" - + "INVALID_CONNECTION_PROFILE_CONFIG\020\003\022\033\n\027V" - + "ERSION_INCOMPATIBILITY\020\004\022,\n(CONNECTION_P" - + "ROFILE_TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_PGL" - + "OGICAL_INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_ALR" - + "EADY_EXISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036" - + "INVALID_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"INSU" - + "FFICIENT_MAX_REPLICATION_SLOTS\020\013\022 \n\034INSU" - + "FFICIENT_MAX_WAL_SENDERS\020\014\022%\n!INSUFFICIE" - + "NT_MAX_WORKER_PROCESSES\020\r\022\032\n\026UNSUPPORTED" - + "_EXTENSIONS\020\016\022\036\n\032UNSUPPORTED_MIGRATION_T" - + "YPE\020\017\022#\n\037INVALID_RDS_LOGICAL_REPLICATION" - + "\020\020\022\031\n\025UNSUPPORTED_GTID_MODE\020\021\022 \n\034UNSUPPO" - + "RTED_TABLE_DEFINITION\020\022\022\027\n\023UNSUPPORTED_D" - + "EFINER\020\023\022\"\n\036CANT_RESTART_RUNNING_MIGRATI" - + "ON\020\025\022\037\n\033TABLES_WITH_LIMITED_SUPPORT\020\030\022\037\n" - + "\033UNSUPPORTED_DATABASE_LOCALE\020\031\022#\n\037UNSUPP" - + "ORTED_DATABASE_FDW_CONFIG\020\032\022\017\n\013ERROR_RDB" - + "MS\020\033\022!\n\035SOURCE_SIZE_EXCEEDS_THRESHOLD\020\034\"" - + "\350\005\n\021PrivateConnection\022\014\n\004name\030\001 \001(\t\0225\n\013c" - + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\004\342A\001\003\022G\n\006labels\030\004 \003(" - + "\01327.google.cloud.clouddms.v1.PrivateConn" - + "ection.LabelsEntry\022\024\n\014display_name\030\005 \001(\t" - + "\022F\n\005state\030\006 \001(\01621.google.cloud.clouddms." - + "v1.PrivateConnection.StateB\004\342A\001\003\022\'\n\005erro" - + "r\030\007 \001(\0132\022.google.rpc.StatusB\004\342A\001\003\022H\n\022vpc" - + "_peering_config\030d \001(\0132*.google.cloud.clo" - + "uddms.v1.VpcPeeringConfigH\000\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001" - + "\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022" - + "\024\n\020FAILED_TO_DELETE\020\005\022\013\n\007DELETED\020\006:\205\001\352A\201" - + "\001\n.datamigration.googleapis.com/PrivateC" - + "onnection\022Oprojects/{project}/locations/" - + "{location}/privateConnections/{private_c" - + "onnection}B\016\n\014connectivity\"d\n\020VpcPeering" - + "Config\022:\n\010vpc_name\030\001 \001(\tB(\342A\001\002\372A!\n\037compu" - + "te.googleapis.com/Networks\022\024\n\006subnet\030\002 \001" - + "(\tB\004\342A\001\002*\223\001\n\023NetworkArchitecture\022$\n NETW" - + "ORK_ARCHITECTURE_UNSPECIFIED\020\000\022*\n&NETWOR" - + "K_ARCHITECTURE_OLD_CSQL_PRODUCER\020\001\022*\n&NE" - + "TWORK_ARCHITECTURE_NEW_CSQL_PRODUCER\020\002*X" - + "\n\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UNSP" - + "ECIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002\022\n\n\006" - + "ORACLE\020\004*e\n\020DatabaseProvider\022!\n\035DATABASE" - + "_PROVIDER_UNSPECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n" - + "\003RDS\020\002\022\n\n\006AURORA\020\003\022\013\n\007ALLOYDB\020\004B\230\002\n\034com." - + "google.cloud.clouddms.v1B\026ClouddmsResour" - + "cesProtoP\001Z8cloud.google.com/go/clouddms" - + "/apiv1/clouddmspb;clouddmspb\252\002\030Google.Cl" - + "oud.CloudDms.V1\312\002\030Google\\Cloud\\CloudDms\\" - + "V1\352\002\033Google::Cloud::CloudDMS::V1\352AO\n\037com" - + "pute.googleapis.com/Networks\022,projects/{" - + "project}/global/networks/{network}b\006prot" - + "o3" + + "Settings.DatabaseFlagsEntry\022]\n\006labels\030\007 " + + "\003(\0132M.google.cloud.clouddms.v1.AlloyDbSe" + + "ttings.PrimaryInstanceSettings.LabelsEnt" + + "ry\022\030\n\nprivate_ip\030\010 \001(\tB\004\342A\001\003\032\"\n\rMachineC" + + "onfig\022\021\n\tcpu_count\030\001 \001(\005\0324\n\022DatabaseFlag" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\032(\n\020EncryptionConfig\022\024\n\014kms_key_nam" + + "e\030\001 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\026\n\024StaticIpConnectivity\"E" + + "\n!PrivateServiceConnectConnectivity\022 \n\022s" + + "ervice_attachment\030\001 \001(\tB\004\342A\001\002\"]\n\026Reverse" + + "SshConnectivity\022\023\n\005vm_ip\030\001 \001(\tB\004\342A\001\002\022\025\n\007" + + "vm_port\030\002 \001(\005B\004\342A\001\002\022\n\n\002vm\030\003 \001(\t\022\013\n\003vpc\030\004" + + " \001(\t\"%\n\026VpcPeeringConnectivity\022\013\n\003vpc\030\001 " + + "\001(\t\"\254\001\n\034ForwardSshTunnelConnectivity\022\026\n\010" + + "hostname\030\001 \001(\tB\004\342A\001\002\022\026\n\010username\030\002 \001(\tB\004" + + "\342A\001\002\022\014\n\004port\030\003 \001(\005\022\030\n\010password\030d \001(\tB\004\342A" + + "\001\004H\000\022\033\n\013private_key\030e \001(\tB\004\342A\001\004H\000B\027\n\025aut" + + "hentication_method\"\035\n\033StaticServiceIpCon" + + "nectivity\"7\n\023PrivateConnectivity\022 \n\022priv" + + "ate_connection\030\001 \001(\tB\004\342A\001\002\"\206\001\n\014DatabaseT" + + "ype\022<\n\010provider\030\001 \001(\0162*.google.cloud.clo" + + "uddms.v1.DatabaseProvider\0228\n\006engine\030\002 \001(" + + "\0162(.google.cloud.clouddms.v1.DatabaseEng" + + "ine\"\342\021\n\014MigrationJob\022\014\n\004name\030\001 \001(\t\0225\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\022B\n\006labels\030\004 \003(\013" + + "22.google.cloud.clouddms.v1.MigrationJob" + + ".LabelsEntry\022\024\n\014display_name\030\005 \001(\t\022;\n\005st" + + "ate\030\006 \001(\0162,.google.cloud.clouddms.v1.Mig" + + "rationJob.State\022A\n\005phase\030\007 \001(\0162,.google." + + "cloud.clouddms.v1.MigrationJob.PhaseB\004\342A" + + "\001\003\022?\n\004type\030\010 \001(\0162+.google.cloud.clouddms" + + ".v1.MigrationJob.TypeB\004\342A\001\002\022\021\n\tdump_path" + + "\030\t \001(\t\022D\n\ndump_flags\030\021 \001(\01320.google.clou" + + "d.clouddms.v1.MigrationJob.DumpFlags\022\024\n\006" + + "source\030\n \001(\tB\004\342A\001\002\022\031\n\013destination\030\013 \001(\tB" + + "\004\342A\001\002\022T\n\030reverse_ssh_connectivity\030e \001(\0132" + + "0.google.cloud.clouddms.v1.ReverseSshCon" + + "nectivityH\000\022T\n\030vpc_peering_connectivity\030" + + "f \001(\01320.google.cloud.clouddms.v1.VpcPeer" + + "ingConnectivityH\000\022P\n\026static_ip_connectiv" + + "ity\030g \001(\0132..google.cloud.clouddms.v1.Sta" + + "ticIpConnectivityH\000\0221\n\010duration\030\014 \001(\0132\031." + + "google.protobuf.DurationB\004\342A\001\003\022\'\n\005error\030" + + "\r \001(\0132\022.google.rpc.StatusB\004\342A\001\003\022?\n\017sourc" + + "e_database\030\016 \001(\0132&.google.cloud.clouddms" + + ".v1.DatabaseType\022D\n\024destination_database" + + "\030\017 \001(\0132&.google.cloud.clouddms.v1.Databa" + + "seType\0222\n\010end_time\030\020 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\022O\n\024conversion_workspa" + + "ce\030\022 \001(\01321.google.cloud.clouddms.v1.Conv" + + "ersionWorkspaceInfo\022\016\n\006filter\030\024 \001(\t\022\025\n\rc" + + "mek_key_name\030\025 \001(\t\022Z\n\022performance_config" + + "\030\026 \001(\01328.google.cloud.clouddms.v1.Migrat" + + "ionJob.PerformanceConfigB\004\342A\001\001\032\'\n\010DumpFl" + + "ag\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\032P\n\tDumpF" + + "lags\022C\n\ndump_flags\030\001 \003(\0132/.google.cloud." + + "clouddms.v1.MigrationJob.DumpFlag\032\325\001\n\021Pe" + + "rformanceConfig\022g\n\023dump_parallel_level\030\001" + + " \001(\0162J.google.cloud.clouddms.v1.Migratio" + + "nJob.PerformanceConfig.DumpParallelLevel" + + "\"W\n\021DumpParallelLevel\022#\n\037DUMP_PARALLEL_L" + + "EVEL_UNSPECIFIED\020\000\022\007\n\003MIN\020\001\022\013\n\007OPTIMAL\020\002" + + "\022\007\n\003MAX\020\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n" + + "\010CREATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020" + + "\005\022\n\n\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING" + + "\020\010\022\014\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED" + + "\020\013\022\014\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTAR" + + "TING\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_" + + "UNSPECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n" + + "\023PROMOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SO" + + "URCE_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_D" + + "UMP\020\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010O" + + "NE_TIME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigr" + + "ation.googleapis.com/MigrationJob\022Eproje" + + "cts/{project}/locations/{location}/migra" + + "tionJobs/{migration_job}B\016\n\014connectivity" + + "\":\n\027ConversionWorkspaceInfo\022\014\n\004name\030\001 \001(" + + "\t\022\021\n\tcommit_id\030\002 \001(\t\"\302\010\n\021ConnectionProfi" + + "le\022\014\n\004name\030\001 \001(\t\0225\n\013create_time\030\002 \001(\0132\032." + + "google.protobuf.TimestampB\004\342A\001\003\0225\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\022G\n\006labels\030\004 \003(\01327.google.cloud.cl" + + "ouddms.v1.ConnectionProfile.LabelsEntry\022" + + "@\n\005state\030\005 \001(\01621.google.cloud.clouddms.v" + + "1.ConnectionProfile.State\022\024\n\014display_nam" + + "e\030\006 \001(\t\022A\n\005mysql\030d \001(\01320.google.cloud.cl" + + "ouddms.v1.MySqlConnectionProfileH\000\022K\n\npo" + + "stgresql\030e \001(\01325.google.cloud.clouddms.v" + + "1.PostgreSqlConnectionProfileH\000\022C\n\006oracl" + + "e\030h \001(\01321.google.cloud.clouddms.v1.Oracl" + + "eConnectionProfileH\000\022G\n\010cloudsql\030f \001(\01323" + + ".google.cloud.clouddms.v1.CloudSqlConnec" + + "tionProfileH\000\022E\n\007alloydb\030i \001(\01322.google." + + "cloud.clouddms.v1.AlloyDbConnectionProfi" + + "leH\000\022\'\n\005error\030\007 \001(\0132\022.google.rpc.StatusB" + + "\004\342A\001\003\022<\n\010provider\030\010 \001(\0162*.google.cloud.c" + + "louddms.v1.DatabaseProvider\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n" + + "\010CREATING\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010" + + "DELETING\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A" + + "\201\001\n.datamigration.googleapis.com/Connect" + + "ionProfile\022Oprojects/{project}/locations" + + "/{location}/connectionProfiles/{connecti" + + "on_profile}B\024\n\022connection_profile\"\330\010\n\035Mi" + + "grationJobVerificationError\022[\n\nerror_cod" + + "e\030\001 \001(\0162A.google.cloud.clouddms.v1.Migra" + + "tionJobVerificationError.ErrorCodeB\004\342A\001\003" + + "\022\033\n\rerror_message\030\002 \001(\tB\004\342A\001\003\022\"\n\024error_d" + + "etail_message\030\003 \001(\tB\004\342A\001\003\"\230\007\n\tErrorCode\022" + + "\032\n\026ERROR_CODE_UNSPECIFIED\020\000\022\026\n\022CONNECTIO" + + "N_FAILURE\020\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022" + + "%\n!INVALID_CONNECTION_PROFILE_CONFIG\020\003\022\033" + + "\n\027VERSION_INCOMPATIBILITY\020\004\022,\n(CONNECTIO" + + "N_PROFILE_TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_" + + "PGLOGICAL_INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_" + + "ALREADY_EXISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022" + + "\"\n\036INVALID_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"I" + + "NSUFFICIENT_MAX_REPLICATION_SLOTS\020\013\022 \n\034I" + + "NSUFFICIENT_MAX_WAL_SENDERS\020\014\022%\n!INSUFFI" + + "CIENT_MAX_WORKER_PROCESSES\020\r\022\032\n\026UNSUPPOR" + + "TED_EXTENSIONS\020\016\022\036\n\032UNSUPPORTED_MIGRATIO" + + "N_TYPE\020\017\022#\n\037INVALID_RDS_LOGICAL_REPLICAT" + + "ION\020\020\022\031\n\025UNSUPPORTED_GTID_MODE\020\021\022 \n\034UNSU" + + "PPORTED_TABLE_DEFINITION\020\022\022\027\n\023UNSUPPORTE" + + "D_DEFINER\020\023\022\"\n\036CANT_RESTART_RUNNING_MIGR" + + "ATION\020\025\022\030\n\024SOURCE_ALREADY_SETUP\020\027\022\037\n\033TAB" + + "LES_WITH_LIMITED_SUPPORT\020\030\022\037\n\033UNSUPPORTE" + + "D_DATABASE_LOCALE\020\031\022#\n\037UNSUPPORTED_DATAB" + + "ASE_FDW_CONFIG\020\032\022\017\n\013ERROR_RDBMS\020\033\022!\n\035SOU" + + "RCE_SIZE_EXCEEDS_THRESHOLD\020\034\022\"\n\036EXISTING" + + "_CONFLICTING_DATABASES\020\035\022*\n&PARALLEL_IMP" + + "ORT_INSUFFICIENT_PRIVILEGE\020\036\"\350\005\n\021Private" + + "Connection\022\014\n\004name\030\001 \001(\t\0225\n\013create_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "5\n\013update_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\022G\n\006labels\030\004 \003(\01327.google." + + "cloud.clouddms.v1.PrivateConnection.Labe" + + "lsEntry\022\024\n\014display_name\030\005 \001(\t\022F\n\005state\030\006" + + " \001(\01621.google.cloud.clouddms.v1.PrivateC" + + "onnection.StateB\004\342A\001\003\022\'\n\005error\030\007 \001(\0132\022.g" + + "oogle.rpc.StatusB\004\342A\001\003\022H\n\022vpc_peering_co" + + "nfig\030d \001(\0132*.google.cloud.clouddms.v1.Vp" + + "cPeeringConfigH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREATED" + + "\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED_T" + + "O_DELETE\020\005\022\013\n\007DELETED\020\006:\205\001\352A\201\001\n.datamigr" + + "ation.googleapis.com/PrivateConnection\022O" + + "projects/{project}/locations/{location}/" + + "privateConnections/{private_connection}B" + + "\016\n\014connectivity\"d\n\020VpcPeeringConfig\022:\n\010v" + + "pc_name\030\001 \001(\tB(\342A\001\002\372A!\n\037compute.googleap" + + "is.com/Networks\022\024\n\006subnet\030\002 \001(\tB\004\342A\001\002*\223\001" + + "\n\023NetworkArchitecture\022$\n NETWORK_ARCHITE" + + "CTURE_UNSPECIFIED\020\000\022*\n&NETWORK_ARCHITECT" + + "URE_OLD_CSQL_PRODUCER\020\001\022*\n&NETWORK_ARCHI" + + "TECTURE_NEW_CSQL_PRODUCER\020\002*X\n\016DatabaseE" + + "ngine\022\037\n\033DATABASE_ENGINE_UNSPECIFIED\020\000\022\t" + + "\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002\022\n\n\006ORACLE\020\004*e\n" + + "\020DatabaseProvider\022!\n\035DATABASE_PROVIDER_U" + + "NSPECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002\022\n\n\006A" + + "URORA\020\003\022\013\n\007ALLOYDB\020\004B\230\002\n\034com.google.clou" + + "d.clouddms.v1B\026ClouddmsResourcesProtoP\001Z" + + "8cloud.google.com/go/clouddms/apiv1/clou" + + "ddmspb;clouddmspb\252\002\030Google.Cloud.CloudDm" + + "s.V1\312\002\030Google\\Cloud\\CloudDms\\V1\352\002\033Google" + + "::Cloud::CloudDMS::V1\352AO\n\037compute.google" + + "apis.com/Networks\022,projects/{project}/gl" + + "obal/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -529,6 +548,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Password", "PasswordSet", "DatabaseService", + "Ssl", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", @@ -594,6 +614,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Collation", "CmekKeyName", "AvailabilityType", + "Edition", }); internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor = internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor @@ -774,6 +795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionWorkspace", "Filter", "CmekKeyName", + "PerformanceConfig", "Connectivity", }); internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_descriptor = @@ -792,8 +814,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DumpFlags", }); - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_descriptor = internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_descriptor, + new java.lang.String[] { + "DumpParallelLevel", + }); + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(3); internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConditionalColumnSetValue.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConditionalColumnSetValue.java new file mode 100644 index 000000000000..9dbad4d7b04d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConditionalColumnSetValue.java @@ -0,0 +1,1777 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type ConditionalColumnSetValue.
+ * The rule is used to transform the data which is being replicated/migrated.
+ *
+ * The rule filter field can refer to one or more entities.
+ *
+ * The rule scope can be one of: Column.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConditionalColumnSetValue} + */ +public final class ConditionalColumnSetValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConditionalColumnSetValue) + ConditionalColumnSetValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConditionalColumnSetValue.newBuilder() to construct. + private ConditionalColumnSetValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConditionalColumnSetValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConditionalColumnSetValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.class, + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.Builder.class); + } + + private int sourceFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceFilter_; + + public enum SourceFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SOURCE_TEXT_FILTER(100), + SOURCE_NUMERIC_FILTER(101), + SOURCEFILTER_NOT_SET(0); + private final int value; + + private SourceFilterCase(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 SourceFilterCase valueOf(int value) { + return forNumber(value); + } + + public static SourceFilterCase forNumber(int value) { + switch (value) { + case 100: + return SOURCE_TEXT_FILTER; + case 101: + return SOURCE_NUMERIC_FILTER; + case 0: + return SOURCEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceFilterCase getSourceFilterCase() { + return SourceFilterCase.forNumber(sourceFilterCase_); + } + + public static final int SOURCE_TEXT_FILTER_FIELD_NUMBER = 100; + /** + * + * + *
+   * Optional. Optional filter on source column length. Used for text based
+   * data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceTextFilter field is set. + */ + @java.lang.Override + public boolean hasSourceTextFilter() { + return sourceFilterCase_ == 100; + } + /** + * + * + *
+   * Optional. Optional filter on source column length. Used for text based
+   * data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceTextFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilter getSourceTextFilter() { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Optional filter on source column length. Used for text based
+   * data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder getSourceTextFilterOrBuilder() { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + + public static final int SOURCE_NUMERIC_FILTER_FIELD_NUMBER = 101; + /** + * + * + *
+   * Optional. Optional filter on source column precision and scale. Used for
+   * fixed point numbers such as NUMERIC/NUMBER data types.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceNumericFilter field is set. + */ + @java.lang.Override + public boolean hasSourceNumericFilter() { + return sourceFilterCase_ == 101; + } + /** + * + * + *
+   * Optional. Optional filter on source column precision and scale. Used for
+   * fixed point numbers such as NUMERIC/NUMBER data types.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNumericFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilter getSourceNumericFilter() { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Optional filter on source column precision and scale. Used for
+   * fixed point numbers such as NUMERIC/NUMBER data types.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder + getSourceNumericFilterOrBuilder() { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + + public static final int VALUE_TRANSFORMATION_FIELD_NUMBER = 1; + private com.google.cloud.clouddms.v1.ValueTransformation valueTransformation_; + /** + * + * + *
+   * Required. Description of data transformation during migration.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the valueTransformation field is set. + */ + @java.lang.Override + public boolean hasValueTransformation() { + return valueTransformation_ != null; + } + /** + * + * + *
+   * Required. Description of data transformation during migration.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueTransformation. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueTransformation getValueTransformation() { + return valueTransformation_ == null + ? com.google.cloud.clouddms.v1.ValueTransformation.getDefaultInstance() + : valueTransformation_; + } + /** + * + * + *
+   * Required. Description of data transformation during migration.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueTransformationOrBuilder + getValueTransformationOrBuilder() { + return valueTransformation_ == null + ? com.google.cloud.clouddms.v1.ValueTransformation.getDefaultInstance() + : valueTransformation_; + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 2; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueTransformation_ != null) { + output.writeMessage(1, getValueTransformation()); + } + if (customFeatures_ != null) { + output.writeMessage(2, getCustomFeatures()); + } + if (sourceFilterCase_ == 100) { + output.writeMessage(100, (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_); + } + if (sourceFilterCase_ == 101) { + output.writeMessage(101, (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueTransformation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getValueTransformation()); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomFeatures()); + } + if (sourceFilterCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_); + } + if (sourceFilterCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_); + } + 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.ConditionalColumnSetValue)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ConditionalColumnSetValue other = + (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) obj; + + if (hasValueTransformation() != other.hasValueTransformation()) return false; + if (hasValueTransformation()) { + if (!getValueTransformation().equals(other.getValueTransformation())) return false; + } + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getSourceFilterCase().equals(other.getSourceFilterCase())) return false; + switch (sourceFilterCase_) { + case 100: + if (!getSourceTextFilter().equals(other.getSourceTextFilter())) return false; + break; + case 101: + if (!getSourceNumericFilter().equals(other.getSourceNumericFilter())) 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(); + if (hasValueTransformation()) { + hash = (37 * hash) + VALUE_TRANSFORMATION_FIELD_NUMBER; + hash = (53 * hash) + getValueTransformation().hashCode(); + } + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + switch (sourceFilterCase_) { + case 100: + hash = (37 * hash) + SOURCE_TEXT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceTextFilter().hashCode(); + break; + case 101: + hash = (37 * hash) + SOURCE_NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceNumericFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ConditionalColumnSetValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConditionalColumnSetValue 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.ConditionalColumnSetValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConditionalColumnSetValue 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.ConditionalColumnSetValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConditionalColumnSetValue 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.ConditionalColumnSetValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConditionalColumnSetValue 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.ConditionalColumnSetValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConditionalColumnSetValue 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.ConditionalColumnSetValue 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.ConditionalColumnSetValue 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.ConditionalColumnSetValue 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; + } + /** + * + * + *
+   * Options to configure rule type ConditionalColumnSetValue.
+   * The rule is used to transform the data which is being replicated/migrated.
+   *
+   * The rule filter field can refer to one or more entities.
+   *
+   * The rule scope can be one of: Column.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConditionalColumnSetValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ConditionalColumnSetValue) + com.google.cloud.clouddms.v1.ConditionalColumnSetValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.class, + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ConditionalColumnSetValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sourceTextFilterBuilder_ != null) { + sourceTextFilterBuilder_.clear(); + } + if (sourceNumericFilterBuilder_ != null) { + sourceNumericFilterBuilder_.clear(); + } + valueTransformation_ = null; + if (valueTransformationBuilder_ != null) { + valueTransformationBuilder_.dispose(); + valueTransformationBuilder_ = null; + } + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + sourceFilterCase_ = 0; + sourceFilter_ = 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_ConditionalColumnSetValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConditionalColumnSetValue getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConditionalColumnSetValue build() { + com.google.cloud.clouddms.v1.ConditionalColumnSetValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConditionalColumnSetValue buildPartial() { + com.google.cloud.clouddms.v1.ConditionalColumnSetValue result = + new com.google.cloud.clouddms.v1.ConditionalColumnSetValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ConditionalColumnSetValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.valueTransformation_ = + valueTransformationBuilder_ == null + ? valueTransformation_ + : valueTransformationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.ConditionalColumnSetValue result) { + result.sourceFilterCase_ = sourceFilterCase_; + result.sourceFilter_ = this.sourceFilter_; + if (sourceFilterCase_ == 100 && sourceTextFilterBuilder_ != null) { + result.sourceFilter_ = sourceTextFilterBuilder_.build(); + } + if (sourceFilterCase_ == 101 && sourceNumericFilterBuilder_ != null) { + result.sourceFilter_ = sourceNumericFilterBuilder_.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.ConditionalColumnSetValue) { + return mergeFrom((com.google.cloud.clouddms.v1.ConditionalColumnSetValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ConditionalColumnSetValue other) { + if (other == com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance()) + return this; + if (other.hasValueTransformation()) { + mergeValueTransformation(other.getValueTransformation()); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + switch (other.getSourceFilterCase()) { + case SOURCE_TEXT_FILTER: + { + mergeSourceTextFilter(other.getSourceTextFilter()); + break; + } + case SOURCE_NUMERIC_FILTER: + { + mergeSourceNumericFilter(other.getSourceNumericFilter()); + break; + } + case SOURCEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getValueTransformationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 802: + { + input.readMessage( + getSourceTextFilterFieldBuilder().getBuilder(), extensionRegistry); + sourceFilterCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getSourceNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + sourceFilterCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceFilterCase_ = 0; + private java.lang.Object sourceFilter_; + + public SourceFilterCase getSourceFilterCase() { + return SourceFilterCase.forNumber(sourceFilterCase_); + } + + public Builder clearSourceFilter() { + sourceFilterCase_ = 0; + sourceFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceTextFilter, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder, + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder> + sourceTextFilterBuilder_; + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceTextFilter field is set. + */ + @java.lang.Override + public boolean hasSourceTextFilter() { + return sourceFilterCase_ == 100; + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceTextFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilter getSourceTextFilter() { + if (sourceTextFilterBuilder_ == null) { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } else { + if (sourceFilterCase_ == 100) { + return sourceTextFilterBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceTextFilter(com.google.cloud.clouddms.v1.SourceTextFilter value) { + if (sourceTextFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceFilter_ = value; + onChanged(); + } else { + sourceTextFilterBuilder_.setMessage(value); + } + sourceFilterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceTextFilter( + com.google.cloud.clouddms.v1.SourceTextFilter.Builder builderForValue) { + if (sourceTextFilterBuilder_ == null) { + sourceFilter_ = builderForValue.build(); + onChanged(); + } else { + sourceTextFilterBuilder_.setMessage(builderForValue.build()); + } + sourceFilterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSourceTextFilter(com.google.cloud.clouddms.v1.SourceTextFilter value) { + if (sourceTextFilterBuilder_ == null) { + if (sourceFilterCase_ == 100 + && sourceFilter_ + != com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance()) { + sourceFilter_ = + com.google.cloud.clouddms.v1.SourceTextFilter.newBuilder( + (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceFilter_ = value; + } + onChanged(); + } else { + if (sourceFilterCase_ == 100) { + sourceTextFilterBuilder_.mergeFrom(value); + } else { + sourceTextFilterBuilder_.setMessage(value); + } + } + sourceFilterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceTextFilter() { + if (sourceTextFilterBuilder_ == null) { + if (sourceFilterCase_ == 100) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + onChanged(); + } + } else { + if (sourceFilterCase_ == 100) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + } + sourceTextFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SourceTextFilter.Builder getSourceTextFilterBuilder() { + return getSourceTextFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder getSourceTextFilterOrBuilder() { + if ((sourceFilterCase_ == 100) && (sourceTextFilterBuilder_ != null)) { + return sourceTextFilterBuilder_.getMessageOrBuilder(); + } else { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Optional filter on source column length. Used for text based
+     * data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceTextFilter, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder, + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder> + getSourceTextFilterFieldBuilder() { + if (sourceTextFilterBuilder_ == null) { + if (!(sourceFilterCase_ == 100)) { + sourceFilter_ = com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + sourceTextFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceTextFilter, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder, + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder>( + (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_, + getParentForChildren(), + isClean()); + sourceFilter_ = null; + } + sourceFilterCase_ = 100; + onChanged(); + return sourceTextFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceNumericFilter, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder, + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder> + sourceNumericFilterBuilder_; + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceNumericFilter field is set. + */ + @java.lang.Override + public boolean hasSourceNumericFilter() { + return sourceFilterCase_ == 101; + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNumericFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilter getSourceNumericFilter() { + if (sourceNumericFilterBuilder_ == null) { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } else { + if (sourceFilterCase_ == 101) { + return sourceNumericFilterBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceNumericFilter(com.google.cloud.clouddms.v1.SourceNumericFilter value) { + if (sourceNumericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceFilter_ = value; + onChanged(); + } else { + sourceNumericFilterBuilder_.setMessage(value); + } + sourceFilterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceNumericFilter( + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder builderForValue) { + if (sourceNumericFilterBuilder_ == null) { + sourceFilter_ = builderForValue.build(); + onChanged(); + } else { + sourceNumericFilterBuilder_.setMessage(builderForValue.build()); + } + sourceFilterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSourceNumericFilter( + com.google.cloud.clouddms.v1.SourceNumericFilter value) { + if (sourceNumericFilterBuilder_ == null) { + if (sourceFilterCase_ == 101 + && sourceFilter_ + != com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance()) { + sourceFilter_ = + com.google.cloud.clouddms.v1.SourceNumericFilter.newBuilder( + (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceFilter_ = value; + } + onChanged(); + } else { + if (sourceFilterCase_ == 101) { + sourceNumericFilterBuilder_.mergeFrom(value); + } else { + sourceNumericFilterBuilder_.setMessage(value); + } + } + sourceFilterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceNumericFilter() { + if (sourceNumericFilterBuilder_ == null) { + if (sourceFilterCase_ == 101) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + onChanged(); + } + } else { + if (sourceFilterCase_ == 101) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + } + sourceNumericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SourceNumericFilter.Builder + getSourceNumericFilterBuilder() { + return getSourceNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder + getSourceNumericFilterOrBuilder() { + if ((sourceFilterCase_ == 101) && (sourceNumericFilterBuilder_ != null)) { + return sourceNumericFilterBuilder_.getMessageOrBuilder(); + } else { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Optional filter on source column precision and scale. Used for
+     * fixed point numbers such as NUMERIC/NUMBER data types.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceNumericFilter, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder, + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder> + getSourceNumericFilterFieldBuilder() { + if (sourceNumericFilterBuilder_ == null) { + if (!(sourceFilterCase_ == 101)) { + sourceFilter_ = com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + sourceNumericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceNumericFilter, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder, + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder>( + (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_, + getParentForChildren(), + isClean()); + sourceFilter_ = null; + } + sourceFilterCase_ = 101; + onChanged(); + return sourceNumericFilterBuilder_; + } + + private com.google.cloud.clouddms.v1.ValueTransformation valueTransformation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ValueTransformation, + com.google.cloud.clouddms.v1.ValueTransformation.Builder, + com.google.cloud.clouddms.v1.ValueTransformationOrBuilder> + valueTransformationBuilder_; + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the valueTransformation field is set. + */ + public boolean hasValueTransformation() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueTransformation. + */ + public com.google.cloud.clouddms.v1.ValueTransformation getValueTransformation() { + if (valueTransformationBuilder_ == null) { + return valueTransformation_ == null + ? com.google.cloud.clouddms.v1.ValueTransformation.getDefaultInstance() + : valueTransformation_; + } else { + return valueTransformationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValueTransformation(com.google.cloud.clouddms.v1.ValueTransformation value) { + if (valueTransformationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueTransformation_ = value; + } else { + valueTransformationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValueTransformation( + com.google.cloud.clouddms.v1.ValueTransformation.Builder builderForValue) { + if (valueTransformationBuilder_ == null) { + valueTransformation_ = builderForValue.build(); + } else { + valueTransformationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeValueTransformation( + com.google.cloud.clouddms.v1.ValueTransformation value) { + if (valueTransformationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && valueTransformation_ != null + && valueTransformation_ + != com.google.cloud.clouddms.v1.ValueTransformation.getDefaultInstance()) { + getValueTransformationBuilder().mergeFrom(value); + } else { + valueTransformation_ = value; + } + } else { + valueTransformationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearValueTransformation() { + bitField0_ = (bitField0_ & ~0x00000004); + valueTransformation_ = null; + if (valueTransformationBuilder_ != null) { + valueTransformationBuilder_.dispose(); + valueTransformationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.ValueTransformation.Builder + getValueTransformationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getValueTransformationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.ValueTransformationOrBuilder + getValueTransformationOrBuilder() { + if (valueTransformationBuilder_ != null) { + return valueTransformationBuilder_.getMessageOrBuilder(); + } else { + return valueTransformation_ == null + ? com.google.cloud.clouddms.v1.ValueTransformation.getDefaultInstance() + : valueTransformation_; + } + } + /** + * + * + *
+     * Required. Description of data transformation during migration.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ValueTransformation, + com.google.cloud.clouddms.v1.ValueTransformation.Builder, + com.google.cloud.clouddms.v1.ValueTransformationOrBuilder> + getValueTransformationFieldBuilder() { + if (valueTransformationBuilder_ == null) { + valueTransformationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ValueTransformation, + com.google.cloud.clouddms.v1.ValueTransformation.Builder, + com.google.cloud.clouddms.v1.ValueTransformationOrBuilder>( + getValueTransformation(), getParentForChildren(), isClean()); + valueTransformation_ = null; + } + return valueTransformationBuilder_; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000008); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ConditionalColumnSetValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConditionalColumnSetValue) + private static final com.google.cloud.clouddms.v1.ConditionalColumnSetValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConditionalColumnSetValue(); + } + + public static com.google.cloud.clouddms.v1.ConditionalColumnSetValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionalColumnSetValue 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.ConditionalColumnSetValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConditionalColumnSetValueOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConditionalColumnSetValueOrBuilder.java new file mode 100644 index 000000000000..78f8d6a51ee2 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConditionalColumnSetValueOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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 ConditionalColumnSetValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConditionalColumnSetValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Optional filter on source column length. Used for text based
+   * data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceTextFilter field is set. + */ + boolean hasSourceTextFilter(); + /** + * + * + *
+   * Optional. Optional filter on source column length. Used for text based
+   * data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceTextFilter. + */ + com.google.cloud.clouddms.v1.SourceTextFilter getSourceTextFilter(); + /** + * + * + *
+   * Optional. Optional filter on source column length. Used for text based
+   * data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder getSourceTextFilterOrBuilder(); + + /** + * + * + *
+   * Optional. Optional filter on source column precision and scale. Used for
+   * fixed point numbers such as NUMERIC/NUMBER data types.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceNumericFilter field is set. + */ + boolean hasSourceNumericFilter(); + /** + * + * + *
+   * Optional. Optional filter on source column precision and scale. Used for
+   * fixed point numbers such as NUMERIC/NUMBER data types.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNumericFilter. + */ + com.google.cloud.clouddms.v1.SourceNumericFilter getSourceNumericFilter(); + /** + * + * + *
+   * Optional. Optional filter on source column precision and scale. Used for
+   * fixed point numbers such as NUMERIC/NUMBER data types.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder getSourceNumericFilterOrBuilder(); + + /** + * + * + *
+   * Required. Description of data transformation during migration.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the valueTransformation field is set. + */ + boolean hasValueTransformation(); + /** + * + * + *
+   * Required. Description of data transformation during migration.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueTransformation. + */ + com.google.cloud.clouddms.v1.ValueTransformation getValueTransformation(); + /** + * + * + *
+   * Required. Description of data transformation during migration.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueTransformation value_transformation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.ValueTransformationOrBuilder getValueTransformationOrBuilder(); + + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); + + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.SourceFilterCase getSourceFilterCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspace.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspace.java index eb69e71d7055..8a52496c786e 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspace.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspace.java @@ -272,14 +272,15 @@ public int getGlobalSettingsCount() { * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsGlobalSettings(java.lang.String key) { @@ -298,14 +299,15 @@ public java.util.Map getGlobalSettings() { * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getGlobalSettingsMap() { @@ -315,14 +317,15 @@ public java.util.Map getGlobalSettingsMap() * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getGlobalSettingsOrDefault( @@ -339,14 +342,15 @@ public java.util.Map getGlobalSettingsMap() * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getGlobalSettingsOrThrow(java.lang.String key) { @@ -592,10 +596,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * The display name for the workspace.
+   * Optional. The display name for the workspace.
    * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -615,10 +619,10 @@ public java.lang.String getDisplayName() { * * *
-   * The display name for the workspace.
+   * Optional. The display name for the workspace.
    * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -1809,14 +1813,16 @@ public int getGlobalSettingsCount() { * * *
-     * A generic list of settings for the workspace.
+     * Optional. A generic list of settings for the workspace.
      * The settings are database pair dependant and can indicate default behavior
      * for the mapping rules engine or turn on or off specific features.
      * Such examples can be: convert_foreign_key_to_interleave=true,
      * skip_triggers=false, ignore_non_table_synonyms=true
      * 
* - * map<string, string> global_settings = 4; + * + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsGlobalSettings(java.lang.String key) { @@ -1835,14 +1841,16 @@ public java.util.Map getGlobalSettings() { * * *
-     * A generic list of settings for the workspace.
+     * Optional. A generic list of settings for the workspace.
      * The settings are database pair dependant and can indicate default behavior
      * for the mapping rules engine or turn on or off specific features.
      * Such examples can be: convert_foreign_key_to_interleave=true,
      * skip_triggers=false, ignore_non_table_synonyms=true
      * 
* - * map<string, string> global_settings = 4; + * + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getGlobalSettingsMap() { @@ -1852,14 +1860,16 @@ public java.util.Map getGlobalSettingsMap() * * *
-     * A generic list of settings for the workspace.
+     * Optional. A generic list of settings for the workspace.
      * The settings are database pair dependant and can indicate default behavior
      * for the mapping rules engine or turn on or off specific features.
      * Such examples can be: convert_foreign_key_to_interleave=true,
      * skip_triggers=false, ignore_non_table_synonyms=true
      * 
* - * map<string, string> global_settings = 4; + * + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getGlobalSettingsOrDefault( @@ -1876,14 +1886,16 @@ public java.util.Map getGlobalSettingsMap() * * *
-     * A generic list of settings for the workspace.
+     * Optional. A generic list of settings for the workspace.
      * The settings are database pair dependant and can indicate default behavior
      * for the mapping rules engine or turn on or off specific features.
      * Such examples can be: convert_foreign_key_to_interleave=true,
      * skip_triggers=false, ignore_non_table_synonyms=true
      * 
* - * map<string, string> global_settings = 4; + * + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getGlobalSettingsOrThrow(java.lang.String key) { @@ -1906,14 +1918,16 @@ public Builder clearGlobalSettings() { * * *
-     * A generic list of settings for the workspace.
+     * Optional. A generic list of settings for the workspace.
      * The settings are database pair dependant and can indicate default behavior
      * for the mapping rules engine or turn on or off specific features.
      * Such examples can be: convert_foreign_key_to_interleave=true,
      * skip_triggers=false, ignore_non_table_synonyms=true
      * 
* - * map<string, string> global_settings = 4; + * + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeGlobalSettings(java.lang.String key) { if (key == null) { @@ -1932,14 +1946,16 @@ public java.util.Map getMutableGlobalSetting * * *
-     * A generic list of settings for the workspace.
+     * Optional. A generic list of settings for the workspace.
      * The settings are database pair dependant and can indicate default behavior
      * for the mapping rules engine or turn on or off specific features.
      * Such examples can be: convert_foreign_key_to_interleave=true,
      * skip_triggers=false, ignore_non_table_synonyms=true
      * 
* - * map<string, string> global_settings = 4; + * + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putGlobalSettings(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1956,14 +1972,16 @@ public Builder putGlobalSettings(java.lang.String key, java.lang.String value) { * * *
-     * A generic list of settings for the workspace.
+     * Optional. A generic list of settings for the workspace.
      * The settings are database pair dependant and can indicate default behavior
      * for the mapping rules engine or turn on or off specific features.
      * Such examples can be: convert_foreign_key_to_interleave=true,
      * skip_triggers=false, ignore_non_table_synonyms=true
      * 
* - * map<string, string> global_settings = 4; + * + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllGlobalSettings(java.util.Map values) { internalGetMutableGlobalSettings().getMutableMap().putAll(values); @@ -2741,10 +2759,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * The display name for the workspace.
+     * Optional. The display name for the workspace.
      * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -2763,10 +2781,10 @@ public java.lang.String getDisplayName() { * * *
-     * The display name for the workspace.
+     * Optional. The display name for the workspace.
      * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -2785,10 +2803,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * The display name for the workspace.
+     * Optional. The display name for the workspace.
      * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. @@ -2806,10 +2824,10 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * The display name for the workspace.
+     * Optional. The display name for the workspace.
      * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2823,10 +2841,10 @@ public Builder clearDisplayName() { * * *
-     * The display name for the workspace.
+     * Optional. The display name for the workspace.
      * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for displayName 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/ConversionWorkspaceOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceOrBuilder.java index d61bc9f420c3..03e975f7f8c1 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceOrBuilder.java @@ -136,28 +136,30 @@ public interface ConversionWorkspaceOrBuilder * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGlobalSettingsCount(); /** * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsGlobalSettings(java.lang.String key); /** Use {@link #getGlobalSettingsMap()} instead. */ @@ -167,28 +169,30 @@ public interface ConversionWorkspaceOrBuilder * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getGlobalSettingsMap(); /** * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ java.lang.String getGlobalSettingsOrDefault( @@ -199,14 +203,15 @@ java.lang.String getGlobalSettingsOrDefault( * * *
-   * A generic list of settings for the workspace.
+   * Optional. A generic list of settings for the workspace.
    * The settings are database pair dependant and can indicate default behavior
    * for the mapping rules engine or turn on or off specific features.
    * Such examples can be: convert_foreign_key_to_interleave=true,
    * skip_triggers=false, ignore_non_table_synonyms=true
    * 
* - * map<string, string> global_settings = 4; + * map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getGlobalSettingsOrThrow(java.lang.String key); @@ -370,10 +375,10 @@ java.lang.String getGlobalSettingsOrDefault( * * *
-   * The display name for the workspace.
+   * Optional. The display name for the workspace.
    * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -382,10 +387,10 @@ java.lang.String getGlobalSettingsOrDefault( * * *
-   * The display name for the workspace.
+   * Optional. The display name for the workspace.
    * 
* - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceResourcesProto.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceResourcesProto.java index a09f3e3b23ed..a928e9f44f53 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceResourcesProto.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceResourcesProto.java @@ -59,10 +59,102 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MappingRuleFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MappingRuleFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MappingRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MappingRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SingleEntityRename_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SingleEntityRename_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MultiEntityRename_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MultiEntityRename_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_EntityMove_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_EntityMove_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SingleColumnChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SingleColumnChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SourceTextFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SourceTextFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SourceNumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SourceNumericFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ValueTransformation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ValueTransformation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SinglePackageChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SinglePackageChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SourceSqlChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SourceSqlChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_FilterTableColumns_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_FilterTableColumns_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ValueListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ValueListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_IntComparisonFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_IntComparisonFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AssignSpecificValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AssignSpecificValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ApplyHash_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ApplyHash_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_RoundToScale_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_RoundToScale_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_DatabaseEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -103,6 +195,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_FunctionEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -111,6 +207,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_PackageEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_UDTEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_UDTEntity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -119,6 +219,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_EntityDdl_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_EntityDdl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_EntityIssue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_EntityIssue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_EntityIssue_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_EntityIssue_Position_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -133,168 +245,360 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uddms.v1\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\0321google/clo" + "ud/clouddms/v1/clouddms_resources.proto\032" - + "\034google/protobuf/struct.proto\032\037google/pr" - + "otobuf/timestamp.proto\"k\n\022DatabaseEngine" - + "Info\022>\n\006engine\030\001 \001(\0162(.google.cloud.clou" - + "ddms.v1.DatabaseEngineB\004\342A\001\002\022\025\n\007version\030" - + "\002 \001(\tB\004\342A\001\002\"\332\005\n\023ConversionWorkspace\022\014\n\004n" - + "ame\030\001 \001(\t\022B\n\006source\030\002 \001(\0132,.google.cloud" - + ".clouddms.v1.DatabaseEngineInfoB\004\342A\001\002\022G\n" - + "\013destination\030\003 \001(\0132,.google.cloud.cloudd" - + "ms.v1.DatabaseEngineInfoB\004\342A\001\002\022Z\n\017global" - + "_settings\030\004 \003(\0132A.google.cloud.clouddms." - + "v1.ConversionWorkspace.GlobalSettingsEnt" - + "ry\022%\n\027has_uncommitted_changes\030\005 \001(\010B\004\342A\001" - + "\003\022\036\n\020latest_commit_id\030\006 \001(\tB\004\342A\001\003\022<\n\022lat" - + "est_commit_time\030\007 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\0225\n\013create_time\030\t \001(\0132\032.g" - + "oogle.protobuf.TimestampB\004\342A\001\003\0225\n\013update" - + "_time\030\n \001(\0132\032.google.protobuf.TimestampB" - + "\004\342A\001\003\022\024\n\014display_name\030\013 \001(\t\0325\n\023GlobalSet" - + "tingsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:\213\001\352A\207\001\n0datamigration.googleapis.com/" - + "ConversionWorkspace\022Sprojects/{project}/" - + "locations/{location}/conversionWorkspace" - + "s/{conversion_workspace}\"\306\010\n\025BackgroundJ" - + "obLogEntry\022\n\n\002id\030\001 \001(\t\022=\n\010job_type\030\002 \001(\016" - + "2+.google.cloud.clouddms.v1.BackgroundJo" - + "bType\022.\n\nstart_time\030\003 \001(\0132\032.google.proto" - + "buf.Timestamp\022/\n\013finish_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022\\\n\020completion_sta" - + "te\030\005 \001(\0162B.google.cloud.clouddms.v1.Back" - + "groundJobLogEntry.JobCompletionState\022\032\n\022" - + "completion_comment\030\006 \001(\t\022\032\n\022request_auto" - + "commit\030\007 \001(\010\022Z\n\020seed_job_details\030d \001(\0132>" - + ".google.cloud.clouddms.v1.BackgroundJobL" - + "ogEntry.SeedJobDetailsH\000\022i\n\030import_rules" - + "_job_details\030e \001(\0132E.google.cloud.cloudd" - + "ms.v1.BackgroundJobLogEntry.ImportRulesJ" - + "obDetailsH\000\022`\n\023convert_job_details\030f \001(\013" - + "2A.google.cloud.clouddms.v1.BackgroundJo" - + "bLogEntry.ConvertJobDetailsH\000\022\\\n\021apply_j" + + "\033google/protobuf/empty.proto\032\034google/pro" + + "tobuf/struct.proto\032\037google/protobuf/time" + + "stamp.proto\"k\n\022DatabaseEngineInfo\022>\n\006eng" + + "ine\030\001 \001(\0162(.google.cloud.clouddms.v1.Dat" + + "abaseEngineB\004\342A\001\002\022\025\n\007version\030\002 \001(\tB\004\342A\001\002" + + "\"\221\006\n\023ConversionWorkspace\022\014\n\004name\030\001 \001(\t\022B" + + "\n\006source\030\002 \001(\0132,.google.cloud.clouddms.v" + + "1.DatabaseEngineInfoB\004\342A\001\002\022G\n\013destinatio" + + "n\030\003 \001(\0132,.google.cloud.clouddms.v1.Datab" + + "aseEngineInfoB\004\342A\001\002\022`\n\017global_settings\030\004" + + " \003(\0132A.google.cloud.clouddms.v1.Conversi" + + "onWorkspace.GlobalSettingsEntryB\004\342A\001\001\022%\n" + + "\027has_uncommitted_changes\030\005 \001(\010B\004\342A\001\003\022\036\n\020" + + "latest_commit_id\030\006 \001(\tB\004\342A\001\003\022<\n\022latest_c" + + "ommit_time\030\007 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\0225\n\013create_time\030\t \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" + + "\030\n \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\022\032\n\014display_name\030\013 \001(\tB\004\342A\001\001\0325\n\023GlobalSe" + + "ttingsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:\266\001\352A\262\001\n0datamigration.googleapis.com" + + "/ConversionWorkspace\022Sprojects/{project}" + + "/locations/{location}/conversionWorkspac" + + "es/{conversion_workspace}*\024conversionWor" + + "kspaces2\023conversionWorkspace\"\224\t\n\025Backgro" + + "undJobLogEntry\022\n\n\002id\030\001 \001(\t\022=\n\010job_type\030\002" + + " \001(\0162+.google.cloud.clouddms.v1.Backgrou" + + "ndJobType\022.\n\nstart_time\030\003 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013finish_time\030\004 \001(\0132\032" + + ".google.protobuf.Timestamp\022b\n\020completion" + + "_state\030\005 \001(\0162B.google.cloud.clouddms.v1." + + "BackgroundJobLogEntry.JobCompletionState" + + "B\004\342A\001\003\022 \n\022completion_comment\030\006 \001(\tB\004\342A\001\003" + + "\022 \n\022request_autocommit\030\007 \001(\010B\004\342A\001\003\022`\n\020se" + + "ed_job_details\030d \001(\0132>.google.cloud.clou" + + "ddms.v1.BackgroundJobLogEntry.SeedJobDet" + + "ailsB\004\342A\001\003H\000\022o\n\030import_rules_job_details" + + "\030e \001(\0132E.google.cloud.clouddms.v1.Backgr" + + "oundJobLogEntry.ImportRulesJobDetailsB\004\342" + + "A\001\003H\000\022f\n\023convert_job_details\030f \001(\0132A.goo" + + "gle.cloud.clouddms.v1.BackgroundJobLogEn" + + "try.ConvertJobDetailsB\004\342A\001\003H\000\022b\n\021apply_j" + "ob_details\030g \001(\0132?.google.cloud.clouddms" + ".v1.BackgroundJobLogEntry.ApplyJobDetail" - + "sH\000\032,\n\016SeedJobDetails\022\032\n\022connection_prof" - + "ile\030\001 \001(\t\032l\n\025ImportRulesJobDetails\022\r\n\005fi" - + "les\030\001 \003(\t\022D\n\013file_format\030\002 \001(\0162/.google." - + "cloud.clouddms.v1.ImportRulesFileFormat\032" - + "#\n\021ConvertJobDetails\022\016\n\006filter\030\001 \001(\t\032=\n\017" - + "ApplyJobDetails\022\032\n\022connection_profile\030\001 " - + "\001(\t\022\016\n\006filter\030\002 \001(\t\"U\n\022JobCompletionStat" - + "e\022$\n JOB_COMPLETION_STATE_UNSPECIFIED\020\000\022" - + "\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002B\r\n\013job_detail" - + "s\"\323\006\n\016DatabaseEntity\022\022\n\nshort_name\030\001 \001(\t" - + "\022\025\n\rparent_entity\030\002 \001(\t\022?\n\004tree\030\003 \001(\01621." - + "google.cloud.clouddms.v1.DatabaseEntity." - + "TreeType\022A\n\013entity_type\030\004 \001(\0162,.google.c" - + "loud.clouddms.v1.DatabaseEntityType\0229\n\010m" - + "appings\030\005 \003(\0132\'.google.cloud.clouddms.v1" - + ".EntityMapping\0228\n\006schema\030f \001(\0132&.google." - + "cloud.clouddms.v1.SchemaEntityH\000\0226\n\005tabl" - + "e\030g \001(\0132%.google.cloud.clouddms.v1.Table" - + "EntityH\000\0224\n\004view\030h \001(\0132$.google.cloud.cl" - + "ouddms.v1.ViewEntityH\000\022<\n\010sequence\030i \001(\013" - + "2(.google.cloud.clouddms.v1.SequenceEnti" - + "tyH\000\022K\n\020stored_procedure\030j \001(\0132/.google." - + "cloud.clouddms.v1.StoredProcedureEntityH" - + "\000\022E\n\021database_function\030k \001(\0132(.google.cl" - + "oud.clouddms.v1.FunctionEntityH\000\022:\n\007syno" - + "nym\030l \001(\0132\'.google.cloud.clouddms.v1.Syn" - + "onymEntityH\000\022C\n\020database_package\030m \001(\0132\'" - + ".google.cloud.clouddms.v1.PackageEntityH" - + "\000\"M\n\010TreeType\022\031\n\025TREE_TYPE_UNSPECIFIED\020\000" - + "\022\n\n\006SOURCE\020\001\022\t\n\005DRAFT\020\002\022\017\n\013DESTINATION\020\003" - + "B\r\n\013entity_body\"@\n\014SchemaEntity\0220\n\017custo" - + "m_features\030\001 \001(\0132\027.google.protobuf.Struc" - + "t\"\275\002\n\013TableEntity\0227\n\007columns\030\001 \003(\0132&.goo" - + "gle.cloud.clouddms.v1.ColumnEntity\022?\n\013co" - + "nstraints\030\002 \003(\0132*.google.cloud.clouddms." - + "v1.ConstraintEntity\0226\n\007indices\030\003 \003(\0132%.g" - + "oogle.cloud.clouddms.v1.IndexEntity\0229\n\010t" - + "riggers\030\004 \003(\0132\'.google.cloud.clouddms.v1" - + ".TriggerEntity\0220\n\017custom_features\030\005 \001(\0132" - + "\027.google.protobuf.Struct\022\017\n\007comment\030\006 \001(" - + "\t\"\217\003\n\014ColumnEntity\022\014\n\004name\030\001 \001(\t\022\021\n\tdata" - + "_type\030\002 \001(\t\022\017\n\007charset\030\003 \001(\t\022\021\n\tcollatio" - + "n\030\004 \001(\t\022\016\n\006length\030\005 \001(\003\022\021\n\tprecision\030\006 \001" - + "(\005\022\r\n\005scale\030\007 \001(\005\022$\n\034fractional_seconds_" - + "precision\030\010 \001(\005\022\r\n\005array\030\t \001(\010\022\024\n\014array_" - + "length\030\n \001(\005\022\020\n\010nullable\030\013 \001(\010\022\026\n\016auto_g" - + "enerated\030\014 \001(\010\022\013\n\003udt\030\r \001(\010\0220\n\017custom_fe" - + "atures\030\016 \001(\0132\027.google.protobuf.Struct\022\022\n" - + "\nset_values\030\017 \003(\t\022\017\n\007comment\030\020 \001(\t\022\030\n\020or" - + "dinal_position\030\021 \001(\005\022\025\n\rdefault_value\030\022 " - + "\001(\t\"\277\001\n\020ConstraintEntity\022\014\n\004name\030\001 \001(\t\022\014" - + "\n\004type\030\002 \001(\t\022\025\n\rtable_columns\030\003 \003(\t\0220\n\017c" - + "ustom_features\030\004 \001(\0132\027.google.protobuf.S" - + "truct\022\031\n\021reference_columns\030\005 \003(\t\022\027\n\017refe" - + "rence_table\030\006 \001(\t\022\022\n\ntable_name\030\007 \001(\t\"\202\001" - + "\n\013IndexEntity\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(" - + "\t\022\025\n\rtable_columns\030\003 \003(\t\022\016\n\006unique\030\004 \001(\010" - + "\0220\n\017custom_features\030\005 \001(\0132\027.google.proto" - + "buf.Struct\"\222\001\n\rTriggerEntity\022\014\n\004name\030\001 \001" - + "(\t\022\031\n\021triggering_events\030\002 \003(\t\022\024\n\014trigger" - + "_type\030\003 \001(\t\022\020\n\010sql_code\030\004 \001(\t\0220\n\017custom_" - + "features\030\005 \001(\0132\027.google.protobuf.Struct\"" - + "\221\001\n\nViewEntity\022\020\n\010sql_code\030\001 \001(\t\0220\n\017cust" - + "om_features\030\002 \001(\0132\027.google.protobuf.Stru" - + "ct\022?\n\013constraints\030\003 \003(\0132*.google.cloud.c" - + "louddms.v1.ConstraintEntity\"\256\001\n\016Sequence" - + "Entity\022\021\n\tincrement\030\001 \001(\003\022\023\n\013start_value" - + "\030\002 \001(\014\022\021\n\tmax_value\030\003 \001(\014\022\021\n\tmin_value\030\004" - + " \001(\014\022\r\n\005cycle\030\005 \001(\010\022\r\n\005cache\030\006 \001(\003\0220\n\017cu" - + "stom_features\030\007 \001(\0132\027.google.protobuf.St" - + "ruct\"[\n\025StoredProcedureEntity\022\020\n\010sql_cod" - + "e\030\001 \001(\t\0220\n\017custom_features\030\002 \001(\0132\027.googl" - + "e.protobuf.Struct\"T\n\016FunctionEntity\022\020\n\010s" - + "ql_code\030\001 \001(\t\0220\n\017custom_features\030\002 \001(\0132\027" - + ".google.protobuf.Struct\"\233\001\n\rSynonymEntit" - + "y\022\025\n\rsource_entity\030\001 \001(\t\022A\n\013source_type\030" - + "\002 \001(\0162,.google.cloud.clouddms.v1.Databas" - + "eEntityType\0220\n\017custom_features\030\003 \001(\0132\027.g" - + "oogle.protobuf.Struct\"q\n\rPackageEntity\022\030" - + "\n\020package_sql_code\030\001 \001(\t\022\024\n\014package_body" - + "\030\002 \001(\t\0220\n\017custom_features\030\003 \001(\0132\027.google" - + ".protobuf.Struct\"\207\002\n\rEntityMapping\022\025\n\rso" - + "urce_entity\030\001 \001(\t\022\024\n\014draft_entity\030\002 \001(\t\022" - + "A\n\013source_type\030\004 \001(\0162,.google.cloud.clou" - + "ddms.v1.DatabaseEntityType\022@\n\ndraft_type" - + "\030\005 \001(\0162,.google.cloud.clouddms.v1.Databa" - + "seEntityType\022D\n\013mapping_log\030\003 \003(\0132/.goog" - + "le.cloud.clouddms.v1.EntityMappingLogEnt" - + "ry\"[\n\025EntityMappingLogEntry\022\017\n\007rule_id\030\001" - + " \001(\t\022\030\n\020rule_revision_id\030\002 \001(\t\022\027\n\017mappin" - + "g_comment\030\003 \001(\t*\315\004\n\022DatabaseEntityType\022$" - + "\n DATABASE_ENTITY_TYPE_UNSPECIFIED\020\000\022\037\n\033" - + "DATABASE_ENTITY_TYPE_SCHEMA\020\001\022\036\n\032DATABAS" - + "E_ENTITY_TYPE_TABLE\020\002\022\037\n\033DATABASE_ENTITY" - + "_TYPE_COLUMN\020\003\022#\n\037DATABASE_ENTITY_TYPE_C" - + "ONSTRAINT\020\004\022\036\n\032DATABASE_ENTITY_TYPE_INDE" - + "X\020\005\022 \n\034DATABASE_ENTITY_TYPE_TRIGGER\020\006\022\035\n" - + "\031DATABASE_ENTITY_TYPE_VIEW\020\007\022!\n\035DATABASE" - + "_ENTITY_TYPE_SEQUENCE\020\010\022)\n%DATABASE_ENTI" - + "TY_TYPE_STORED_PROCEDURE\020\t\022!\n\035DATABASE_E" - + "NTITY_TYPE_FUNCTION\020\n\022 \n\034DATABASE_ENTITY" - + "_TYPE_SYNONYM\020\013\022)\n%DATABASE_ENTITY_TYPE_" - + "DATABASE_PACKAGE\020\014\022\034\n\030DATABASE_ENTITY_TY" - + "PE_UDT\020\r\022*\n&DATABASE_ENTITY_TYPE_MATERIA" - + "LIZED_VIEW\020\016\022!\n\035DATABASE_ENTITY_TYPE_DAT" - + "ABASE\020\017*\324\001\n\021BackgroundJobType\022#\n\037BACKGRO" - + "UND_JOB_TYPE_UNSPECIFIED\020\000\022#\n\037BACKGROUND" - + "_JOB_TYPE_SOURCE_SEED\020\001\022\037\n\033BACKGROUND_JO" - + "B_TYPE_CONVERT\020\002\022)\n%BACKGROUND_JOB_TYPE_" - + "APPLY_DESTINATION\020\003\022)\n%BACKGROUND_JOB_TY" - + "PE_IMPORT_RULES_FILE\020\005*\255\001\n\025ImportRulesFi" - + "leFormat\022(\n$IMPORT_RULES_FILE_FORMAT_UNS" - + "PECIFIED\020\000\0228\n4IMPORT_RULES_FILE_FORMAT_H" - + "ARBOUR_BRIDGE_SESSION_FILE\020\001\0220\n,IMPORT_R" - + "ULES_FILE_FORMAT_ORATOPG_CONFIG_FILE\020\002B\321" - + "\001\n\034com.google.cloud.clouddms.v1B!Convers" - + "ionWorkspaceResourcesProtoP\001Z8cloud.goog" - + "le.com/go/clouddms/apiv1/clouddmspb;clou" - + "ddmspb\252\002\030Google.Cloud.CloudDms.V1\312\002\030Goog" - + "le\\Cloud\\CloudDms\\V1\352\002\033Google::Cloud::Cl" - + "oudDMS::V1b\006proto3" + + "sB\004\342A\001\003H\000\0322\n\016SeedJobDetails\022 \n\022connectio" + + "n_profile\030\001 \001(\tB\004\342A\001\003\032x\n\025ImportRulesJobD" + + "etails\022\023\n\005files\030\001 \003(\tB\004\342A\001\003\022J\n\013file_form" + + "at\030\002 \001(\0162/.google.cloud.clouddms.v1.Impo" + + "rtRulesFileFormatB\004\342A\001\003\032)\n\021ConvertJobDet" + + "ails\022\024\n\006filter\030\001 \001(\tB\004\342A\001\003\032I\n\017ApplyJobDe" + + "tails\022 \n\022connection_profile\030\001 \001(\tB\004\342A\001\003\022" + + "\024\n\006filter\030\002 \001(\tB\004\342A\001\003\"U\n\022JobCompletionSt" + + "ate\022$\n JOB_COMPLETION_STATE_UNSPECIFIED\020" + + "\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002B\r\n\013job_deta" + + "ils\"\260\001\n\021MappingRuleFilter\022\033\n\rparent_enti" + + "ty\030\001 \001(\tB\004\342A\001\001\022 \n\022entity_name_prefix\030\002 \001" + + "(\tB\004\342A\001\001\022 \n\022entity_name_suffix\030\003 \001(\tB\004\342A" + + "\001\001\022\"\n\024entity_name_contains\030\004 \001(\tB\004\342A\001\001\022\026" + + "\n\010entities\030\005 \003(\tB\004\342A\001\001\"\260\014\n\013MappingRule\022\014" + + "\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001" + + "\022@\n\005state\030\003 \001(\0162+.google.cloud.clouddms." + + "v1.MappingRule.StateB\004\342A\001\001\022F\n\nrule_scope" + + "\030\004 \001(\0162,.google.cloud.clouddms.v1.Databa" + + "seEntityTypeB\004\342A\001\002\022A\n\006filter\030\005 \001(\0132+.goo" + + "gle.cloud.clouddms.v1.MappingRuleFilterB" + + "\004\342A\001\002\022\030\n\nrule_order\030\006 \001(\003B\004\342A\001\002\022\031\n\013revis" + + "ion_id\030\007 \001(\tB\004\342A\001\003\022>\n\024revision_create_ti" + + "me\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\022R\n\024single_entity_rename\030f \001(\0132,.googl" + + "e.cloud.clouddms.v1.SingleEntityRenameB\004" + + "\342A\001\001H\000\022P\n\023multi_entity_rename\030g \001(\0132+.go" + + "ogle.cloud.clouddms.v1.MultiEntityRename" + + "B\004\342A\001\001H\000\022A\n\013entity_move\030i \001(\0132$.google.c" + + "loud.clouddms.v1.EntityMoveB\004\342A\001\001H\000\022R\n\024s" + + "ingle_column_change\030j \001(\0132,.google.cloud" + + ".clouddms.v1.SingleColumnChangeB\004\342A\001\001H\000\022" + + "b\n\035multi_column_data_type_change\030k \001(\01323" + + ".google.cloud.clouddms.v1.MultiColumnDat" + + "atypeChangeB\004\342A\001\001H\000\022a\n\034conditional_colum" + + "n_set_value\030l \001(\01323.google.cloud.clouddm" + + "s.v1.ConditionalColumnSetValueB\004\342A\001\001H\000\022T" + + "\n\024convert_rowid_column\030r \001(\0132..google.cl" + + "oud.clouddms.v1.ConvertRowIdToColumnB\004\342A" + + "\001\001H\000\022S\n\025set_table_primary_key\030s \001(\0132,.go" + + "ogle.cloud.clouddms.v1.SetTablePrimaryKe" + + "yB\004\342A\001\001H\000\022T\n\025single_package_change\030t \001(\013" + + "2-.google.cloud.clouddms.v1.SinglePackag" + + "eChangeB\004\342A\001\001H\000\022L\n\021source_sql_change\030u \001" + + "(\0132).google.cloud.clouddms.v1.SourceSqlC" + + "hangeB\004\342A\001\001H\000\022R\n\024filter_table_columns\030v " + + "\001(\0132,.google.cloud.clouddms.v1.FilterTab" + + "leColumnsB\004\342A\001\001H\000\"F\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\013\n\007" + + "DELETED\020\003:\272\001\352A\266\001\n(datamigration.googleap" + + "is.com/MappingRule\022oprojects/{project}/l" + + "ocations/{location}/conversionWorkspaces" + + "/{conversion_workspace}/mappingRules/{ma" + + "pping_rule}*\014mappingRules2\013mappingRuleB\t" + + "\n\007details\",\n\022SingleEntityRename\022\026\n\010new_n" + + "ame\030\001 \001(\tB\004\342A\001\002\"\221\001\n\021MultiEntityRename\022\036\n" + + "\020new_name_pattern\030\001 \001(\tB\004\342A\001\001\022\\\n\032source_" + + "name_transformation\030\002 \001(\01622.google.cloud" + + ".clouddms.v1.EntityNameTransformationB\004\342" + + "A\001\001\"&\n\nEntityMove\022\030\n\nnew_schema\030\001 \001(\tB\004\342" + + "A\001\002\"\260\003\n\022SingleColumnChange\022\027\n\tdata_type\030" + + "\001 \001(\tB\004\342A\001\001\022\025\n\007charset\030\002 \001(\tB\004\342A\001\001\022\027\n\tco" + + "llation\030\003 \001(\tB\004\342A\001\001\022\024\n\006length\030\004 \001(\003B\004\342A\001" + + "\001\022\027\n\tprecision\030\005 \001(\005B\004\342A\001\001\022\023\n\005scale\030\006 \001(" + + "\005B\004\342A\001\001\022*\n\034fractional_seconds_precision\030" + + "\007 \001(\005B\004\342A\001\001\022\023\n\005array\030\010 \001(\010B\004\342A\001\001\022\032\n\014arra" + + "y_length\030\t \001(\005B\004\342A\001\001\022\026\n\010nullable\030\n \001(\010B\004" + + "\342A\001\001\022\034\n\016auto_generated\030\013 \001(\010B\004\342A\001\001\022\021\n\003ud" + + "t\030\014 \001(\010B\004\342A\001\001\0226\n\017custom_features\030\r \001(\0132\027" + + ".google.protobuf.StructB\004\342A\001\001\022\030\n\nset_val" + + "ues\030\016 \003(\tB\004\342A\001\001\022\025\n\007comment\030\017 \001(\tB\004\342A\001\001\"\342" + + "\003\n\031MultiColumnDatatypeChange\022%\n\027source_d" + + "ata_type_filter\030\001 \001(\tB\004\342A\001\002\022N\n\022source_te" + + "xt_filter\030d \001(\0132*.google.cloud.clouddms." + + "v1.SourceTextFilterB\004\342A\001\001H\000\022T\n\025source_nu" + + "meric_filter\030e \001(\0132-.google.cloud.cloudd" + + "ms.v1.SourceNumericFilterB\004\342A\001\001H\000\022\033\n\rnew" + + "_data_type\030\002 \001(\tB\004\342A\001\002\022\035\n\017override_lengt" + + "h\030\003 \001(\003B\004\342A\001\001\022\034\n\016override_scale\030\004 \001(\005B\004\342" + + "A\001\001\022 \n\022override_precision\030\005 \001(\005B\004\342A\001\001\0223\n" + + "%override_fractional_seconds_precision\030\006" + + " \001(\005B\004\342A\001\001\0226\n\017custom_features\030\007 \001(\0132\027.go" + + "ogle.protobuf.StructB\004\342A\001\001B\017\n\rsource_fil" + + "ter\"b\n\020SourceTextFilter\022&\n\030source_min_le" + + "ngth_filter\030\001 \001(\003B\004\342A\001\001\022&\n\030source_max_le" + + "ngth_filter\030\002 \001(\003B\004\342A\001\001\"\215\002\n\023SourceNumeri" + + "cFilter\022%\n\027source_min_scale_filter\030\001 \001(\005" + + "B\004\342A\001\001\022%\n\027source_max_scale_filter\030\002 \001(\005B" + + "\004\342A\001\001\022)\n\033source_min_precision_filter\030\003 \001" + + "(\005B\004\342A\001\001\022)\n\033source_max_precision_filter\030" + + "\004 \001(\005B\004\342A\001\001\022R\n\025numeric_filter_option\030\005 \001" + + "(\0162-.google.cloud.clouddms.v1.NumericFil" + + "terOptionB\004\342A\001\002\"\335\002\n\031ConditionalColumnSet" + + "Value\022N\n\022source_text_filter\030d \001(\0132*.goog" + + "le.cloud.clouddms.v1.SourceTextFilterB\004\342" + + "A\001\001H\000\022T\n\025source_numeric_filter\030e \001(\0132-.g" + + "oogle.cloud.clouddms.v1.SourceNumericFil" + + "terB\004\342A\001\001H\000\022Q\n\024value_transformation\030\001 \001(" + + "\0132-.google.cloud.clouddms.v1.ValueTransf" + + "ormationB\004\342A\001\002\0226\n\017custom_features\030\002 \001(\0132" + + "\027.google.protobuf.StructB\004\342A\001\001B\017\n\rsource" + + "_filter\"\320\005\n\023ValueTransformation\022/\n\007is_nu" + + "ll\030d \001(\0132\026.google.protobuf.EmptyB\004\342A\001\001H\000" + + "\022E\n\nvalue_list\030e \001(\0132).google.cloud.clou" + + "ddms.v1.ValueListFilterB\004\342A\001\001H\000\022M\n\016int_c" + + "omparison\030f \001(\0132-.google.cloud.clouddms." + + "v1.IntComparisonFilterB\004\342A\001\001H\000\022S\n\021double" + + "_comparison\030g \001(\01320.google.cloud.clouddm" + + "s.v1.DoubleComparisonFilterB\004\342A\001\001H\000\0224\n\013a" + + "ssign_null\030\310\001 \001(\0132\026.google.protobuf.Empt" + + "yB\004\342A\001\001H\001\022U\n\025assign_specific_value\030\311\001 \001(" + + "\0132-.google.cloud.clouddms.v1.AssignSpeci" + + "ficValueB\004\342A\001\001H\001\0229\n\020assign_min_value\030\312\001 " + + "\001(\0132\026.google.protobuf.EmptyB\004\342A\001\001H\001\0229\n\020a" + + "ssign_max_value\030\313\001 \001(\0132\026.google.protobuf" + + ".EmptyB\004\342A\001\001H\001\022D\n\013round_scale\030\314\001 \001(\0132&.g" + + "oogle.cloud.clouddms.v1.RoundToScaleB\004\342A" + + "\001\001H\001\022@\n\napply_hash\030\315\001 \001(\0132#.google.cloud" + + ".clouddms.v1.ApplyHashB\004\342A\001\001H\001B\010\n\006filter" + + "B\010\n\006action\"<\n\024ConvertRowIdToColumn\022$\n\026on" + + "ly_if_no_primary_key\030\001 \001(\010B\004\342A\001\002\"R\n\022SetT" + + "ablePrimaryKey\022!\n\023primary_key_columns\030\001 " + + "\003(\tB\004\342A\001\002\022\031\n\013primary_key\030\002 \001(\tB\004\342A\001\001\"T\n\023" + + "SinglePackageChange\022!\n\023package_descripti" + + "on\030\001 \001(\tB\004\342A\001\001\022\032\n\014package_body\030\002 \001(\tB\004\342A" + + "\001\001\")\n\017SourceSqlChange\022\026\n\010sql_code\030\001 \001(\tB" + + "\004\342A\001\002\"R\n\022FilterTableColumns\022\035\n\017include_c" + + "olumns\030\001 \003(\tB\004\342A\001\001\022\035\n\017exclude_columns\030\002 " + + "\003(\tB\004\342A\001\001\"\222\001\n\017ValueListFilter\022N\n\022value_p" + + "resent_list\030\001 \001(\0162,.google.cloud.clouddm" + + "s.v1.ValuePresentInListB\004\342A\001\002\022\024\n\006values\030" + + "\002 \003(\tB\004\342A\001\002\022\031\n\013ignore_case\030\003 \001(\010B\004\342A\001\002\"u" + + "\n\023IntComparisonFilter\022I\n\020value_compariso" + + "n\030\001 \001(\0162).google.cloud.clouddms.v1.Value" + + "ComparisonB\004\342A\001\002\022\023\n\005value\030\002 \001(\003B\004\342A\001\002\"x\n" + + "\026DoubleComparisonFilter\022I\n\020value_compari" + + "son\030\001 \001(\0162).google.cloud.clouddms.v1.Val" + + "ueComparisonB\004\342A\001\002\022\023\n\005value\030\002 \001(\001B\004\342A\001\002\"" + + "*\n\023AssignSpecificValue\022\023\n\005value\030\001 \001(\tB\004\342" + + "A\001\002\"U\n\tApplyHash\0227\n\017uuid_from_bytes\030d \001(" + + "\0132\026.google.protobuf.EmptyB\004\342A\001\001H\000B\017\n\rhas" + + "h_function\"#\n\014RoundToScale\022\023\n\005scale\030\001 \001(" + + "\005B\004\342A\001\002\"\214\t\n\016DatabaseEntity\022\022\n\nshort_name" + + "\030\001 \001(\t\022\025\n\rparent_entity\030\002 \001(\t\022?\n\004tree\030\003 " + + "\001(\01621.google.cloud.clouddms.v1.DatabaseE" + + "ntity.TreeType\022A\n\013entity_type\030\004 \001(\0162,.go" + + "ogle.cloud.clouddms.v1.DatabaseEntityTyp" + + "e\0229\n\010mappings\030\005 \003(\0132\'.google.cloud.cloud" + + "dms.v1.EntityMapping\0227\n\nentity_ddl\030\006 \003(\013" + + "2#.google.cloud.clouddms.v1.EntityDdl\0225\n" + + "\006issues\030\007 \003(\0132%.google.cloud.clouddms.v1" + + ".EntityIssue\022D\n\010database\030e \001(\01320.google." + + "cloud.clouddms.v1.DatabaseInstanceEntity" + + "H\000\0228\n\006schema\030f \001(\0132&.google.cloud.cloudd" + + "ms.v1.SchemaEntityH\000\0226\n\005table\030g \001(\0132%.go" + + "ogle.cloud.clouddms.v1.TableEntityH\000\0224\n\004" + + "view\030h \001(\0132$.google.cloud.clouddms.v1.Vi" + + "ewEntityH\000\022<\n\010sequence\030i \001(\0132(.google.cl" + + "oud.clouddms.v1.SequenceEntityH\000\022K\n\020stor" + + "ed_procedure\030j \001(\0132/.google.cloud.cloudd" + + "ms.v1.StoredProcedureEntityH\000\022E\n\021databas" + + "e_function\030k \001(\0132(.google.cloud.clouddms" + + ".v1.FunctionEntityH\000\022:\n\007synonym\030l \001(\0132\'." + + "google.cloud.clouddms.v1.SynonymEntityH\000" + + "\022C\n\020database_package\030m \001(\0132\'.google.clou" + + "d.clouddms.v1.PackageEntityH\000\0222\n\003udt\030n \001" + + "(\0132#.google.cloud.clouddms.v1.UDTEntityH" + + "\000\022M\n\021materialized_view\030o \001(\01320.google.cl" + + "oud.clouddms.v1.MaterializedViewEntityH\000" + + "\"M\n\010TreeType\022\031\n\025TREE_TYPE_UNSPECIFIED\020\000\022" + + "\n\n\006SOURCE\020\001\022\t\n\005DRAFT\020\002\022\017\n\013DESTINATION\020\003B" + + "\r\n\013entity_body\"J\n\026DatabaseInstanceEntity" + + "\0220\n\017custom_features\030\001 \001(\0132\027.google.proto" + + "buf.Struct\"@\n\014SchemaEntity\0220\n\017custom_fea" + + "tures\030\001 \001(\0132\027.google.protobuf.Struct\"\275\002\n" + + "\013TableEntity\0227\n\007columns\030\001 \003(\0132&.google.c" + + "loud.clouddms.v1.ColumnEntity\022?\n\013constra" + + "ints\030\002 \003(\0132*.google.cloud.clouddms.v1.Co" + + "nstraintEntity\0226\n\007indices\030\003 \003(\0132%.google" + + ".cloud.clouddms.v1.IndexEntity\0229\n\010trigge" + + "rs\030\004 \003(\0132\'.google.cloud.clouddms.v1.Trig" + + "gerEntity\0220\n\017custom_features\030\005 \001(\0132\027.goo" + + "gle.protobuf.Struct\022\017\n\007comment\030\006 \001(\t\"\217\003\n" + + "\014ColumnEntity\022\014\n\004name\030\001 \001(\t\022\021\n\tdata_type" + + "\030\002 \001(\t\022\017\n\007charset\030\003 \001(\t\022\021\n\tcollation\030\004 \001" + + "(\t\022\016\n\006length\030\005 \001(\003\022\021\n\tprecision\030\006 \001(\005\022\r\n" + + "\005scale\030\007 \001(\005\022$\n\034fractional_seconds_preci" + + "sion\030\010 \001(\005\022\r\n\005array\030\t \001(\010\022\024\n\014array_lengt" + + "h\030\n \001(\005\022\020\n\010nullable\030\013 \001(\010\022\026\n\016auto_genera" + + "ted\030\014 \001(\010\022\013\n\003udt\030\r \001(\010\0220\n\017custom_feature" + + "s\030\016 \001(\0132\027.google.protobuf.Struct\022\022\n\nset_" + + "values\030\017 \003(\t\022\017\n\007comment\030\020 \001(\t\022\030\n\020ordinal" + + "_position\030\021 \001(\005\022\025\n\rdefault_value\030\022 \001(\t\"\277" + + "\001\n\020ConstraintEntity\022\014\n\004name\030\001 \001(\t\022\014\n\004typ" + + "e\030\002 \001(\t\022\025\n\rtable_columns\030\003 \003(\t\0220\n\017custom" + + "_features\030\004 \001(\0132\027.google.protobuf.Struct" + + "\022\031\n\021reference_columns\030\005 \003(\t\022\027\n\017reference" + + "_table\030\006 \001(\t\022\022\n\ntable_name\030\007 \001(\t\"\202\001\n\013Ind" + + "exEntity\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\025\n\r" + + "table_columns\030\003 \003(\t\022\016\n\006unique\030\004 \001(\010\0220\n\017c" + + "ustom_features\030\005 \001(\0132\027.google.protobuf.S" + + "truct\"\222\001\n\rTriggerEntity\022\014\n\004name\030\001 \001(\t\022\031\n" + + "\021triggering_events\030\002 \003(\t\022\024\n\014trigger_type" + + "\030\003 \001(\t\022\020\n\010sql_code\030\004 \001(\t\0220\n\017custom_featu" + + "res\030\005 \001(\0132\027.google.protobuf.Struct\"\221\001\n\nV" + + "iewEntity\022\020\n\010sql_code\030\001 \001(\t\0220\n\017custom_fe" + + "atures\030\002 \001(\0132\027.google.protobuf.Struct\022?\n" + + "\013constraints\030\003 \003(\0132*.google.cloud.cloudd" + + "ms.v1.ConstraintEntity\"\256\001\n\016SequenceEntit" + + "y\022\021\n\tincrement\030\001 \001(\003\022\023\n\013start_value\030\002 \001(" + + "\014\022\021\n\tmax_value\030\003 \001(\014\022\021\n\tmin_value\030\004 \001(\014\022" + + "\r\n\005cycle\030\005 \001(\010\022\r\n\005cache\030\006 \001(\003\0220\n\017custom_" + + "features\030\007 \001(\0132\027.google.protobuf.Struct\"" + + "[\n\025StoredProcedureEntity\022\020\n\010sql_code\030\001 \001" + + "(\t\0220\n\017custom_features\030\002 \001(\0132\027.google.pro" + + "tobuf.Struct\"T\n\016FunctionEntity\022\020\n\010sql_co" + + "de\030\001 \001(\t\0220\n\017custom_features\030\002 \001(\0132\027.goog" + + "le.protobuf.Struct\"\\\n\026MaterializedViewEn" + + "tity\022\020\n\010sql_code\030\001 \001(\t\0220\n\017custom_feature" + + "s\030\002 \001(\0132\027.google.protobuf.Struct\"\233\001\n\rSyn" + + "onymEntity\022\025\n\rsource_entity\030\001 \001(\t\022A\n\013sou" + + "rce_type\030\002 \001(\0162,.google.cloud.clouddms.v" + + "1.DatabaseEntityType\0220\n\017custom_features\030" + + "\003 \001(\0132\027.google.protobuf.Struct\"q\n\rPackag" + + "eEntity\022\030\n\020package_sql_code\030\001 \001(\t\022\024\n\014pac" + + "kage_body\030\002 \001(\t\0220\n\017custom_features\030\003 \001(\013" + + "2\027.google.protobuf.Struct\"e\n\tUDTEntity\022\024" + + "\n\014udt_sql_code\030\001 \001(\t\022\020\n\010udt_body\030\002 \001(\t\0220" + + "\n\017custom_features\030\003 \001(\0132\027.google.protobu" + + "f.Struct\"\207\002\n\rEntityMapping\022\025\n\rsource_ent" + + "ity\030\001 \001(\t\022\024\n\014draft_entity\030\002 \001(\t\022A\n\013sourc" + + "e_type\030\004 \001(\0162,.google.cloud.clouddms.v1." + + "DatabaseEntityType\022@\n\ndraft_type\030\005 \001(\0162," + + ".google.cloud.clouddms.v1.DatabaseEntity" + + "Type\022D\n\013mapping_log\030\003 \003(\0132/.google.cloud" + + ".clouddms.v1.EntityMappingLogEntry\"[\n\025En" + + "tityMappingLogEntry\022\017\n\007rule_id\030\001 \001(\t\022\030\n\020" + + "rule_revision_id\030\002 \001(\t\022\027\n\017mapping_commen" + + "t\030\003 \001(\t\"\217\001\n\tEntityDdl\022\020\n\010ddl_type\030\001 \001(\t\022" + + "\016\n\006entity\030\002 \001(\t\022\013\n\003ddl\030\003 \001(\t\022A\n\013entity_t" + + "ype\030\004 \001(\0162,.google.cloud.clouddms.v1.Dat" + + "abaseEntityType\022\020\n\010issue_id\030d \003(\t\"\244\005\n\013En" + + "tityIssue\022\n\n\002id\030\001 \001(\t\022=\n\004type\030\002 \001(\0162/.go" + + "ogle.cloud.clouddms.v1.EntityIssue.Issue" + + "Type\022E\n\010severity\030\003 \001(\01623.google.cloud.cl" + + "ouddms.v1.EntityIssue.IssueSeverity\022\017\n\007m" + + "essage\030\004 \001(\t\022\014\n\004code\030\005 \001(\t\022\020\n\003ddl\030\006 \001(\tH" + + "\000\210\001\001\022E\n\010position\030\007 \001(\0132..google.cloud.cl" + + "ouddms.v1.EntityIssue.PositionH\001\210\001\001\022A\n\013e" + + "ntity_type\030\010 \001(\0162,.google.cloud.clouddms" + + ".v1.DatabaseEntityType\032H\n\010Position\022\014\n\004li" + + "ne\030\001 \001(\005\022\016\n\006column\030\002 \001(\005\022\016\n\006offset\030\003 \001(\005" + + "\022\016\n\006length\030\004 \001(\005\"i\n\tIssueType\022\032\n\026ISSUE_T" + + "YPE_UNSPECIFIED\020\000\022\022\n\016ISSUE_TYPE_DDL\020\001\022\024\n" + + "\020ISSUE_TYPE_APPLY\020\002\022\026\n\022ISSUE_TYPE_CONVER" + + "T\020\003\"~\n\rIssueSeverity\022\036\n\032ISSUE_SEVERITY_U" + + "NSPECIFIED\020\000\022\027\n\023ISSUE_SEVERITY_INFO\020\001\022\032\n" + + "\026ISSUE_SEVERITY_WARNING\020\002\022\030\n\024ISSUE_SEVER" + + "ITY_ERROR\020\003B\006\n\004_ddlB\013\n\t_position*\221\001\n\022Val" + + "uePresentInList\022%\n!VALUE_PRESENT_IN_LIST" + + "_UNSPECIFIED\020\000\022\'\n#VALUE_PRESENT_IN_LIST_" + + "IF_VALUE_LIST\020\001\022+\n\'VALUE_PRESENT_IN_LIST" + + "_IF_VALUE_NOT_LIST\020\002*\315\004\n\022DatabaseEntityT" + + "ype\022$\n DATABASE_ENTITY_TYPE_UNSPECIFIED\020" + + "\000\022\037\n\033DATABASE_ENTITY_TYPE_SCHEMA\020\001\022\036\n\032DA" + + "TABASE_ENTITY_TYPE_TABLE\020\002\022\037\n\033DATABASE_E" + + "NTITY_TYPE_COLUMN\020\003\022#\n\037DATABASE_ENTITY_T" + + "YPE_CONSTRAINT\020\004\022\036\n\032DATABASE_ENTITY_TYPE" + + "_INDEX\020\005\022 \n\034DATABASE_ENTITY_TYPE_TRIGGER" + + "\020\006\022\035\n\031DATABASE_ENTITY_TYPE_VIEW\020\007\022!\n\035DAT" + + "ABASE_ENTITY_TYPE_SEQUENCE\020\010\022)\n%DATABASE" + + "_ENTITY_TYPE_STORED_PROCEDURE\020\t\022!\n\035DATAB" + + "ASE_ENTITY_TYPE_FUNCTION\020\n\022 \n\034DATABASE_E" + + "NTITY_TYPE_SYNONYM\020\013\022)\n%DATABASE_ENTITY_" + + "TYPE_DATABASE_PACKAGE\020\014\022\034\n\030DATABASE_ENTI" + + "TY_TYPE_UDT\020\r\022*\n&DATABASE_ENTITY_TYPE_MA" + + "TERIALIZED_VIEW\020\016\022!\n\035DATABASE_ENTITY_TYP" + + "E_DATABASE\020\017*\377\001\n\030EntityNameTransformatio" + + "n\022*\n&ENTITY_NAME_TRANSFORMATION_UNSPECIF" + + "IED\020\000\0220\n,ENTITY_NAME_TRANSFORMATION_NO_T" + + "RANSFORMATION\020\001\022)\n%ENTITY_NAME_TRANSFORM" + + "ATION_LOWER_CASE\020\002\022)\n%ENTITY_NAME_TRANSF" + + "ORMATION_UPPER_CASE\020\003\022/\n+ENTITY_NAME_TRA" + + "NSFORMATION_CAPITALIZED_CASE\020\004*\324\001\n\021Backg" + + "roundJobType\022#\n\037BACKGROUND_JOB_TYPE_UNSP" + + "ECIFIED\020\000\022#\n\037BACKGROUND_JOB_TYPE_SOURCE_" + + "SEED\020\001\022\037\n\033BACKGROUND_JOB_TYPE_CONVERT\020\002\022" + + ")\n%BACKGROUND_JOB_TYPE_APPLY_DESTINATION" + + "\020\003\022)\n%BACKGROUND_JOB_TYPE_IMPORT_RULES_F" + + "ILE\020\005*\255\001\n\025ImportRulesFileFormat\022(\n$IMPOR" + + "T_RULES_FILE_FORMAT_UNSPECIFIED\020\000\0228\n4IMP" + + "ORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SES" + + "SION_FILE\020\001\0220\n,IMPORT_RULES_FILE_FORMAT_" + + "ORATOPG_CONFIG_FILE\020\002*\355\001\n\017ValueCompariso" + + "n\022 \n\034VALUE_COMPARISON_UNSPECIFIED\020\000\022*\n&V" + + "ALUE_COMPARISON_IF_VALUE_SMALLER_THAN\020\001\022" + + "0\n,VALUE_COMPARISON_IF_VALUE_SMALLER_EQU" + + "AL_THAN\020\002\022)\n%VALUE_COMPARISON_IF_VALUE_L" + + "ARGER_THAN\020\003\022/\n+VALUE_COMPARISON_IF_VALU" + + "E_LARGER_EQUAL_THAN\020\004*\241\001\n\023NumericFilterO" + + "ption\022%\n!NUMERIC_FILTER_OPTION_UNSPECIFI" + + "ED\020\000\022\035\n\031NUMERIC_FILTER_OPTION_ALL\020\001\022\037\n\033N" + + "UMERIC_FILTER_OPTION_LIMIT\020\002\022#\n\037NUMERIC_" + + "FILTER_OPTION_LIMITLESS\020\003B\321\001\n\034com.google" + + ".cloud.clouddms.v1B!ConversionWorkspaceR" + + "esourcesProtoP\001Z8cloud.google.com/go/clo" + + "uddms/apiv1/clouddmspb;clouddmspb\252\002\030Goog" + + "le.Cloud.CloudDms.V1\312\002\030Google\\Cloud\\Clou" + + "dDms\\V1\352\002\033Google::Cloud::CloudDMS::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -303,6 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -400,8 +705,249 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ConnectionProfile", "Filter", }); - internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor = + internal_static_google_cloud_clouddms_v1_MappingRuleFilter_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_clouddms_v1_MappingRuleFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MappingRuleFilter_descriptor, + new java.lang.String[] { + "ParentEntity", + "EntityNamePrefix", + "EntityNameSuffix", + "EntityNameContains", + "Entities", + }); + internal_static_google_cloud_clouddms_v1_MappingRule_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_clouddms_v1_MappingRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MappingRule_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "State", + "RuleScope", + "Filter", + "RuleOrder", + "RevisionId", + "RevisionCreateTime", + "SingleEntityRename", + "MultiEntityRename", + "EntityMove", + "SingleColumnChange", + "MultiColumnDataTypeChange", + "ConditionalColumnSetValue", + "ConvertRowidColumn", + "SetTablePrimaryKey", + "SinglePackageChange", + "SourceSqlChange", + "FilterTableColumns", + "Details", + }); + internal_static_google_cloud_clouddms_v1_SingleEntityRename_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_clouddms_v1_SingleEntityRename_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SingleEntityRename_descriptor, + new java.lang.String[] { + "NewName", + }); + internal_static_google_cloud_clouddms_v1_MultiEntityRename_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_clouddms_v1_MultiEntityRename_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MultiEntityRename_descriptor, + new java.lang.String[] { + "NewNamePattern", "SourceNameTransformation", + }); + internal_static_google_cloud_clouddms_v1_EntityMove_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_clouddms_v1_EntityMove_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_EntityMove_descriptor, + new java.lang.String[] { + "NewSchema", + }); + internal_static_google_cloud_clouddms_v1_SingleColumnChange_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_clouddms_v1_SingleColumnChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SingleColumnChange_descriptor, + new java.lang.String[] { + "DataType", + "Charset", + "Collation", + "Length", + "Precision", + "Scale", + "FractionalSecondsPrecision", + "Array", + "ArrayLength", + "Nullable", + "AutoGenerated", + "Udt", + "CustomFeatures", + "SetValues", + "Comment", + }); + internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_descriptor, + new java.lang.String[] { + "SourceDataTypeFilter", + "SourceTextFilter", + "SourceNumericFilter", + "NewDataType", + "OverrideLength", + "OverrideScale", + "OverridePrecision", + "OverrideFractionalSecondsPrecision", + "CustomFeatures", + "SourceFilter", + }); + internal_static_google_cloud_clouddms_v1_SourceTextFilter_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_clouddms_v1_SourceTextFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SourceTextFilter_descriptor, + new java.lang.String[] { + "SourceMinLengthFilter", "SourceMaxLengthFilter", + }); + internal_static_google_cloud_clouddms_v1_SourceNumericFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_clouddms_v1_SourceNumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SourceNumericFilter_descriptor, + new java.lang.String[] { + "SourceMinScaleFilter", + "SourceMaxScaleFilter", + "SourceMinPrecisionFilter", + "SourceMaxPrecisionFilter", + "NumericFilterOption", + }); + internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConditionalColumnSetValue_descriptor, + new java.lang.String[] { + "SourceTextFilter", + "SourceNumericFilter", + "ValueTransformation", + "CustomFeatures", + "SourceFilter", + }); + internal_static_google_cloud_clouddms_v1_ValueTransformation_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_clouddms_v1_ValueTransformation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ValueTransformation_descriptor, + new java.lang.String[] { + "IsNull", + "ValueList", + "IntComparison", + "DoubleComparison", + "AssignNull", + "AssignSpecificValue", + "AssignMinValue", + "AssignMaxValue", + "RoundScale", + "ApplyHash", + "Filter", + "Action", + }); + internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_descriptor, + new java.lang.String[] { + "OnlyIfNoPrimaryKey", + }); + internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_descriptor, + new java.lang.String[] { + "PrimaryKeyColumns", "PrimaryKey", + }); + internal_static_google_cloud_clouddms_v1_SinglePackageChange_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_clouddms_v1_SinglePackageChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SinglePackageChange_descriptor, + new java.lang.String[] { + "PackageDescription", "PackageBody", + }); + internal_static_google_cloud_clouddms_v1_SourceSqlChange_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_clouddms_v1_SourceSqlChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SourceSqlChange_descriptor, + new java.lang.String[] { + "SqlCode", + }); + internal_static_google_cloud_clouddms_v1_FilterTableColumns_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_clouddms_v1_FilterTableColumns_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_FilterTableColumns_descriptor, + new java.lang.String[] { + "IncludeColumns", "ExcludeColumns", + }); + internal_static_google_cloud_clouddms_v1_ValueListFilter_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_clouddms_v1_ValueListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ValueListFilter_descriptor, + new java.lang.String[] { + "ValuePresentList", "Values", "IgnoreCase", + }); + internal_static_google_cloud_clouddms_v1_IntComparisonFilter_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_clouddms_v1_IntComparisonFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_IntComparisonFilter_descriptor, + new java.lang.String[] { + "ValueComparison", "Value", + }); + internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_descriptor, + new java.lang.String[] { + "ValueComparison", "Value", + }); + internal_static_google_cloud_clouddms_v1_AssignSpecificValue_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_clouddms_v1_AssignSpecificValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AssignSpecificValue_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_clouddms_v1_ApplyHash_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_clouddms_v1_ApplyHash_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ApplyHash_descriptor, + new java.lang.String[] { + "UuidFromBytes", "HashFunction", + }); + internal_static_google_cloud_clouddms_v1_RoundToScale_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_clouddms_v1_RoundToScale_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_RoundToScale_descriptor, + new java.lang.String[] { + "Scale", + }); + internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor = + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_clouddms_v1_DatabaseEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor, @@ -411,6 +957,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tree", "EntityType", "Mappings", + "EntityDdl", + "Issues", + "Database", "Schema", "Table", "View", @@ -419,10 +968,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseFunction", "Synonym", "DatabasePackage", + "Udt", + "MaterializedView", "EntityBody", }); + internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_descriptor, + new java.lang.String[] { + "CustomFeatures", + }); internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_clouddms_v1_SchemaEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor, @@ -430,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomFeatures", }); internal_static_google_cloud_clouddms_v1_TableEntity_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_clouddms_v1_TableEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_TableEntity_descriptor, @@ -438,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Columns", "Constraints", "Indices", "Triggers", "CustomFeatures", "Comment", }); internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_clouddms_v1_ColumnEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor, @@ -463,7 +1022,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultValue", }); internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_clouddms_v1_ConstraintEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor, @@ -477,7 +1036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableName", }); internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_clouddms_v1_IndexEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor, @@ -485,7 +1044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Type", "TableColumns", "Unique", "CustomFeatures", }); internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_clouddms_v1_TriggerEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor, @@ -493,7 +1052,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "TriggeringEvents", "TriggerType", "SqlCode", "CustomFeatures", }); internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_clouddms_v1_ViewEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor, @@ -501,7 +1060,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlCode", "CustomFeatures", "Constraints", }); internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_clouddms_v1_SequenceEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor, @@ -509,7 +1068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Increment", "StartValue", "MaxValue", "MinValue", "Cycle", "Cache", "CustomFeatures", }); internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor, @@ -517,15 +1076,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlCode", "CustomFeatures", }); internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_clouddms_v1_FunctionEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor, new java.lang.String[] { "SqlCode", "CustomFeatures", }); + internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_descriptor, + new java.lang.String[] { + "SqlCode", "CustomFeatures", + }); internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_clouddms_v1_SynonymEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor, @@ -533,15 +1100,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceEntity", "SourceType", "CustomFeatures", }); internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_clouddms_v1_PackageEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor, new java.lang.String[] { "PackageSqlCode", "PackageBody", "CustomFeatures", }); + internal_static_google_cloud_clouddms_v1_UDTEntity_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_clouddms_v1_UDTEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_UDTEntity_descriptor, + new java.lang.String[] { + "UdtSqlCode", "UdtBody", "CustomFeatures", + }); internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_clouddms_v1_EntityMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor, @@ -549,13 +1124,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceEntity", "DraftEntity", "SourceType", "DraftType", "MappingLog", }); internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor, new java.lang.String[] { "RuleId", "RuleRevisionId", "MappingComment", }); + internal_static_google_cloud_clouddms_v1_EntityDdl_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_clouddms_v1_EntityDdl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_EntityDdl_descriptor, + new java.lang.String[] { + "DdlType", "Entity", "Ddl", "EntityType", "IssueId", + }); + internal_static_google_cloud_clouddms_v1_EntityIssue_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_clouddms_v1_EntityIssue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_EntityIssue_descriptor, + new java.lang.String[] { + "Id", + "Type", + "Severity", + "Message", + "Code", + "Ddl", + "Position", + "EntityType", + "Ddl", + "Position", + }); + internal_static_google_cloud_clouddms_v1_EntityIssue_Position_descriptor = + internal_static_google_cloud_clouddms_v1_EntityIssue_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_clouddms_v1_EntityIssue_Position_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_EntityIssue_Position_descriptor, + new java.lang.String[] { + "Line", "Column", "Offset", "Length", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -565,6 +1173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequest.java index c1bf0433521e..c35f37d10edf 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequest.java @@ -123,11 +123,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Specifies whether the conversion workspace is to be committed automatically
-   * after the conversion.
+   * Optional. Specifies whether the conversion workspace is to be committed
+   * automatically after the conversion.
    * 
* - * bool auto_commit = 4; + * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The autoCommit. */ @@ -144,11 +144,11 @@ public boolean getAutoCommit() { * * *
-   * Filter the entities to convert. Leaving this field empty will convert all
-   * of the entities. Supports Google AIP-160 style filtering.
+   * Optional. Filter the entities to convert. Leaving this field empty will
+   * convert all of the entities. Supports Google AIP-160 style filtering.
    * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -168,11 +168,11 @@ public java.lang.String getFilter() { * * *
-   * Filter the entities to convert. Leaving this field empty will convert all
-   * of the entities. Supports Google AIP-160 style filtering.
+   * Optional. Filter the entities to convert. Leaving this field empty will
+   * convert all of the entities. Supports Google AIP-160 style filtering.
    * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -189,6 +189,26 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int CONVERT_FULL_PATH_FIELD_NUMBER = 6; + private boolean convertFullPath_ = false; + /** + * + * + *
+   * Optional. Automatically convert the full entity path for each entity
+   * specified by the filter. For example, if the filter specifies a table, that
+   * table schema (and database if there is one) will also be converted.
+   * 
+ * + * bool convert_full_path = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The convertFullPath. + */ + @java.lang.Override + public boolean getConvertFullPath() { + return convertFullPath_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -212,6 +232,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } + if (convertFullPath_ != false) { + output.writeBool(6, convertFullPath_); + } getUnknownFields().writeTo(output); } @@ -230,6 +253,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } + if (convertFullPath_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, convertFullPath_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -249,6 +275,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getAutoCommit() != other.getAutoCommit()) return false; if (!getFilter().equals(other.getFilter())) return false; + if (getConvertFullPath() != other.getConvertFullPath()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,6 +293,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoCommit()); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + CONVERT_FULL_PATH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConvertFullPath()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -409,6 +438,7 @@ public Builder clear() { name_ = ""; autoCommit_ = false; filter_ = ""; + convertFullPath_ = false; return this; } @@ -456,6 +486,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.convertFullPath_ = convertFullPath_; + } } @java.lang.Override @@ -518,6 +551,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ConvertConversionWorkspace bitField0_ |= 0x00000004; onChanged(); } + if (other.getConvertFullPath() != false) { + setConvertFullPath(other.getConvertFullPath()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -562,6 +598,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 42 + case 48: + { + convertFullPath_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -697,11 +739,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Specifies whether the conversion workspace is to be committed automatically
-     * after the conversion.
+     * Optional. Specifies whether the conversion workspace is to be committed
+     * automatically after the conversion.
      * 
* - * bool auto_commit = 4; + * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The autoCommit. */ @@ -713,11 +755,11 @@ public boolean getAutoCommit() { * * *
-     * Specifies whether the conversion workspace is to be committed automatically
-     * after the conversion.
+     * Optional. Specifies whether the conversion workspace is to be committed
+     * automatically after the conversion.
      * 
* - * bool auto_commit = 4; + * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The autoCommit to set. * @return This builder for chaining. @@ -733,11 +775,11 @@ public Builder setAutoCommit(boolean value) { * * *
-     * Specifies whether the conversion workspace is to be committed automatically
-     * after the conversion.
+     * Optional. Specifies whether the conversion workspace is to be committed
+     * automatically after the conversion.
      * 
* - * bool auto_commit = 4; + * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -753,11 +795,11 @@ public Builder clearAutoCommit() { * * *
-     * Filter the entities to convert. Leaving this field empty will convert all
-     * of the entities. Supports Google AIP-160 style filtering.
+     * Optional. Filter the entities to convert. Leaving this field empty will
+     * convert all of the entities. Supports Google AIP-160 style filtering.
      * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -776,11 +818,11 @@ public java.lang.String getFilter() { * * *
-     * Filter the entities to convert. Leaving this field empty will convert all
-     * of the entities. Supports Google AIP-160 style filtering.
+     * Optional. Filter the entities to convert. Leaving this field empty will
+     * convert all of the entities. Supports Google AIP-160 style filtering.
      * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -799,11 +841,11 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Filter the entities to convert. Leaving this field empty will convert all
-     * of the entities. Supports Google AIP-160 style filtering.
+     * Optional. Filter the entities to convert. Leaving this field empty will
+     * convert all of the entities. Supports Google AIP-160 style filtering.
      * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -821,11 +863,11 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Filter the entities to convert. Leaving this field empty will convert all
-     * of the entities. Supports Google AIP-160 style filtering.
+     * Optional. Filter the entities to convert. Leaving this field empty will
+     * convert all of the entities. Supports Google AIP-160 style filtering.
      * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -839,11 +881,11 @@ public Builder clearFilter() { * * *
-     * Filter the entities to convert. Leaving this field empty will convert all
-     * of the entities. Supports Google AIP-160 style filtering.
+     * Optional. Filter the entities to convert. Leaving this field empty will
+     * convert all of the entities. Supports Google AIP-160 style filtering.
      * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -859,6 +901,65 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private boolean convertFullPath_; + /** + * + * + *
+     * Optional. Automatically convert the full entity path for each entity
+     * specified by the filter. For example, if the filter specifies a table, that
+     * table schema (and database if there is one) will also be converted.
+     * 
+ * + * bool convert_full_path = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The convertFullPath. + */ + @java.lang.Override + public boolean getConvertFullPath() { + return convertFullPath_; + } + /** + * + * + *
+     * Optional. Automatically convert the full entity path for each entity
+     * specified by the filter. For example, if the filter specifies a table, that
+     * table schema (and database if there is one) will also be converted.
+     * 
+ * + * bool convert_full_path = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The convertFullPath to set. + * @return This builder for chaining. + */ + public Builder setConvertFullPath(boolean value) { + + convertFullPath_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Automatically convert the full entity path for each entity
+     * specified by the filter. For example, if the filter specifies a table, that
+     * table schema (and database if there is one) will also be converted.
+     * 
+ * + * bool convert_full_path = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConvertFullPath() { + bitField0_ = (bitField0_ & ~0x00000008); + convertFullPath_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequestOrBuilder.java index fe995ff00b05..d224e596ed5b 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequestOrBuilder.java @@ -54,11 +54,11 @@ public interface ConvertConversionWorkspaceRequestOrBuilder * * *
-   * Specifies whether the conversion workspace is to be committed automatically
-   * after the conversion.
+   * Optional. Specifies whether the conversion workspace is to be committed
+   * automatically after the conversion.
    * 
* - * bool auto_commit = 4; + * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The autoCommit. */ @@ -68,11 +68,11 @@ public interface ConvertConversionWorkspaceRequestOrBuilder * * *
-   * Filter the entities to convert. Leaving this field empty will convert all
-   * of the entities. Supports Google AIP-160 style filtering.
+   * Optional. Filter the entities to convert. Leaving this field empty will
+   * convert all of the entities. Supports Google AIP-160 style filtering.
    * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -81,13 +81,28 @@ public interface ConvertConversionWorkspaceRequestOrBuilder * * *
-   * Filter the entities to convert. Leaving this field empty will convert all
-   * of the entities. Supports Google AIP-160 style filtering.
+   * Optional. Filter the entities to convert. Leaving this field empty will
+   * convert all of the entities. Supports Google AIP-160 style filtering.
    * 
* - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Automatically convert the full entity path for each entity
+   * specified by the filter. For example, if the filter specifies a table, that
+   * table schema (and database if there is one) will also be converted.
+   * 
+ * + * bool convert_full_path = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The convertFullPath. + */ + boolean getConvertFullPath(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertRowIdToColumn.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertRowIdToColumn.java new file mode 100644 index 000000000000..7aa1062647c6 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertRowIdToColumn.java @@ -0,0 +1,554 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type ConvertROWIDToColumn.
+ * The rule is used to add column rowid to destination tables based on an Oracle
+ * rowid function/property.
+ *
+ * The rule filter field can refer to one or more entities.
+ *
+ * The rule scope can be one of: Table.
+ *
+ * This rule requires additional filter to be specified beyond the basic rule
+ * filter field, which is whether or not to work on tables which already have a
+ * primary key defined.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConvertRowIdToColumn} + */ +public final class ConvertRowIdToColumn extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConvertRowIdToColumn) + ConvertRowIdToColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConvertRowIdToColumn.newBuilder() to construct. + private ConvertRowIdToColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConvertRowIdToColumn() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConvertRowIdToColumn(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.class, + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.Builder.class); + } + + public static final int ONLY_IF_NO_PRIMARY_KEY_FIELD_NUMBER = 1; + private boolean onlyIfNoPrimaryKey_ = false; + /** + * + * + *
+   * Required. Only work on tables without primary key defined
+   * 
+ * + * bool only_if_no_primary_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The onlyIfNoPrimaryKey. + */ + @java.lang.Override + public boolean getOnlyIfNoPrimaryKey() { + return onlyIfNoPrimaryKey_; + } + + 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 (onlyIfNoPrimaryKey_ != false) { + output.writeBool(1, onlyIfNoPrimaryKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (onlyIfNoPrimaryKey_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, onlyIfNoPrimaryKey_); + } + 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.ConvertRowIdToColumn)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ConvertRowIdToColumn other = + (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) obj; + + if (getOnlyIfNoPrimaryKey() != other.getOnlyIfNoPrimaryKey()) 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) + ONLY_IF_NO_PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOnlyIfNoPrimaryKey()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ConvertRowIdToColumn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConvertRowIdToColumn 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.ConvertRowIdToColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConvertRowIdToColumn 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.ConvertRowIdToColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConvertRowIdToColumn 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.ConvertRowIdToColumn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConvertRowIdToColumn 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.ConvertRowIdToColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConvertRowIdToColumn 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.ConvertRowIdToColumn 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.ConvertRowIdToColumn 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.ConvertRowIdToColumn 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; + } + /** + * + * + *
+   * Options to configure rule type ConvertROWIDToColumn.
+   * The rule is used to add column rowid to destination tables based on an Oracle
+   * rowid function/property.
+   *
+   * The rule filter field can refer to one or more entities.
+   *
+   * The rule scope can be one of: Table.
+   *
+   * This rule requires additional filter to be specified beyond the basic rule
+   * filter field, which is whether or not to work on tables which already have a
+   * primary key defined.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConvertRowIdToColumn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ConvertRowIdToColumn) + com.google.cloud.clouddms.v1.ConvertRowIdToColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConvertRowIdToColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.class, + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ConvertRowIdToColumn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + onlyIfNoPrimaryKey_ = false; + 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_ConvertRowIdToColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertRowIdToColumn getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertRowIdToColumn build() { + com.google.cloud.clouddms.v1.ConvertRowIdToColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertRowIdToColumn buildPartial() { + com.google.cloud.clouddms.v1.ConvertRowIdToColumn result = + new com.google.cloud.clouddms.v1.ConvertRowIdToColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ConvertRowIdToColumn result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.onlyIfNoPrimaryKey_ = onlyIfNoPrimaryKey_; + } + } + + @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.ConvertRowIdToColumn) { + return mergeFrom((com.google.cloud.clouddms.v1.ConvertRowIdToColumn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ConvertRowIdToColumn other) { + if (other == com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance()) + return this; + if (other.getOnlyIfNoPrimaryKey() != false) { + setOnlyIfNoPrimaryKey(other.getOnlyIfNoPrimaryKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + onlyIfNoPrimaryKey_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean onlyIfNoPrimaryKey_; + /** + * + * + *
+     * Required. Only work on tables without primary key defined
+     * 
+ * + * bool only_if_no_primary_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The onlyIfNoPrimaryKey. + */ + @java.lang.Override + public boolean getOnlyIfNoPrimaryKey() { + return onlyIfNoPrimaryKey_; + } + /** + * + * + *
+     * Required. Only work on tables without primary key defined
+     * 
+ * + * bool only_if_no_primary_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The onlyIfNoPrimaryKey to set. + * @return This builder for chaining. + */ + public Builder setOnlyIfNoPrimaryKey(boolean value) { + + onlyIfNoPrimaryKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Only work on tables without primary key defined
+     * 
+ * + * bool only_if_no_primary_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOnlyIfNoPrimaryKey() { + bitField0_ = (bitField0_ & ~0x00000001); + onlyIfNoPrimaryKey_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ConvertRowIdToColumn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConvertRowIdToColumn) + private static final com.google.cloud.clouddms.v1.ConvertRowIdToColumn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConvertRowIdToColumn(); + } + + public static com.google.cloud.clouddms.v1.ConvertRowIdToColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConvertRowIdToColumn 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.ConvertRowIdToColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertRowIdToColumnOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertRowIdToColumnOrBuilder.java new file mode 100644 index 000000000000..c6ac37690eb2 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertRowIdToColumnOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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 ConvertRowIdToColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConvertRowIdToColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Only work on tables without primary key defined
+   * 
+ * + * bool only_if_no_primary_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The onlyIfNoPrimaryKey. + */ + boolean getOnlyIfNoPrimaryKey(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMappingRuleRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMappingRuleRequest.java new file mode 100644 index 000000000000..055cdde69bc0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMappingRuleRequest.java @@ -0,0 +1,1359 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'CreateMappingRule' command.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CreateMappingRuleRequest} + */ +public final class CreateMappingRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CreateMappingRuleRequest) + CreateMappingRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMappingRuleRequest.newBuilder() to construct. + private CreateMappingRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMappingRuleRequest() { + parent_ = ""; + mappingRuleId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMappingRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CreateMappingRuleRequest.class, + com.google.cloud.clouddms.v1.CreateMappingRuleRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent which owns this collection of mapping rules.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent which owns this collection of mapping rules.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAPPING_RULE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mappingRuleId_ = ""; + /** + * + * + *
+   * Required. The ID of the rule to create.
+   * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mappingRuleId. + */ + @java.lang.Override + public java.lang.String getMappingRuleId() { + java.lang.Object ref = mappingRuleId_; + 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(); + mappingRuleId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the rule to create.
+   * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mappingRuleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMappingRuleIdBytes() { + java.lang.Object ref = mappingRuleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mappingRuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAPPING_RULE_FIELD_NUMBER = 3; + private com.google.cloud.clouddms.v1.MappingRule mappingRule_; + /** + * + * + *
+   * Required. Represents a [mapping rule]
+   * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+   * object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mappingRule field is set. + */ + @java.lang.Override + public boolean hasMappingRule() { + return mappingRule_ != null; + } + /** + * + * + *
+   * Required. Represents a [mapping rule]
+   * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+   * object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mappingRule. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRule getMappingRule() { + return mappingRule_ == null + ? com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance() + : mappingRule_; + } + /** + * + * + *
+   * Required. Represents a [mapping rule]
+   * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+   * object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRuleOrBuilder getMappingRuleOrBuilder() { + return mappingRule_ == null + ? com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance() + : mappingRule_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mappingRuleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mappingRuleId_); + } + if (mappingRule_ != null) { + output.writeMessage(3, getMappingRule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mappingRuleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mappingRuleId_); + } + if (mappingRule_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMappingRule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.CreateMappingRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.CreateMappingRuleRequest other = + (com.google.cloud.clouddms.v1.CreateMappingRuleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMappingRuleId().equals(other.getMappingRuleId())) return false; + if (hasMappingRule() != other.hasMappingRule()) return false; + if (hasMappingRule()) { + if (!getMappingRule().equals(other.getMappingRule())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + MAPPING_RULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getMappingRuleId().hashCode(); + if (hasMappingRule()) { + hash = (37 * hash) + MAPPING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getMappingRule().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.CreateMappingRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreateMappingRuleRequest 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.CreateMappingRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreateMappingRuleRequest 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.CreateMappingRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreateMappingRuleRequest 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.CreateMappingRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreateMappingRuleRequest 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.CreateMappingRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreateMappingRuleRequest 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.CreateMappingRuleRequest 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.CreateMappingRuleRequest 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.CreateMappingRuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for 'CreateMappingRule' command.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CreateMappingRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.CreateMappingRuleRequest) + com.google.cloud.clouddms.v1.CreateMappingRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CreateMappingRuleRequest.class, + com.google.cloud.clouddms.v1.CreateMappingRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.CreateMappingRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + mappingRuleId_ = ""; + mappingRule_ = null; + if (mappingRuleBuilder_ != null) { + mappingRuleBuilder_.dispose(); + mappingRuleBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateMappingRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreateMappingRuleRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.CreateMappingRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreateMappingRuleRequest build() { + com.google.cloud.clouddms.v1.CreateMappingRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreateMappingRuleRequest buildPartial() { + com.google.cloud.clouddms.v1.CreateMappingRuleRequest result = + new com.google.cloud.clouddms.v1.CreateMappingRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.CreateMappingRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mappingRuleId_ = mappingRuleId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mappingRule_ = + mappingRuleBuilder_ == null ? mappingRule_ : mappingRuleBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.CreateMappingRuleRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.CreateMappingRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.CreateMappingRuleRequest other) { + if (other == com.google.cloud.clouddms.v1.CreateMappingRuleRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMappingRuleId().isEmpty()) { + mappingRuleId_ = other.mappingRuleId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMappingRule()) { + mergeMappingRule(other.getMappingRule()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mappingRuleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getMappingRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent which owns this collection of mapping rules.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent which owns this collection of mapping rules.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent which owns this collection of mapping rules.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent which owns this collection of mapping rules.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent which owns this collection of mapping rules.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mappingRuleId_ = ""; + /** + * + * + *
+     * Required. The ID of the rule to create.
+     * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mappingRuleId. + */ + public java.lang.String getMappingRuleId() { + java.lang.Object ref = mappingRuleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mappingRuleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the rule to create.
+     * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mappingRuleId. + */ + public com.google.protobuf.ByteString getMappingRuleIdBytes() { + java.lang.Object ref = mappingRuleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mappingRuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the rule to create.
+     * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mappingRuleId to set. + * @return This builder for chaining. + */ + public Builder setMappingRuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mappingRuleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the rule to create.
+     * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMappingRuleId() { + mappingRuleId_ = getDefaultInstance().getMappingRuleId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the rule to create.
+     * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mappingRuleId to set. + * @return This builder for chaining. + */ + public Builder setMappingRuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mappingRuleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.MappingRule mappingRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRule, + com.google.cloud.clouddms.v1.MappingRule.Builder, + com.google.cloud.clouddms.v1.MappingRuleOrBuilder> + mappingRuleBuilder_; + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mappingRule field is set. + */ + public boolean hasMappingRule() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mappingRule. + */ + public com.google.cloud.clouddms.v1.MappingRule getMappingRule() { + if (mappingRuleBuilder_ == null) { + return mappingRule_ == null + ? com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance() + : mappingRule_; + } else { + return mappingRuleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMappingRule(com.google.cloud.clouddms.v1.MappingRule value) { + if (mappingRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mappingRule_ = value; + } else { + mappingRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMappingRule( + com.google.cloud.clouddms.v1.MappingRule.Builder builderForValue) { + if (mappingRuleBuilder_ == null) { + mappingRule_ = builderForValue.build(); + } else { + mappingRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMappingRule(com.google.cloud.clouddms.v1.MappingRule value) { + if (mappingRuleBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && mappingRule_ != null + && mappingRule_ != com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance()) { + getMappingRuleBuilder().mergeFrom(value); + } else { + mappingRule_ = value; + } + } else { + mappingRuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMappingRule() { + bitField0_ = (bitField0_ & ~0x00000004); + mappingRule_ = null; + if (mappingRuleBuilder_ != null) { + mappingRuleBuilder_.dispose(); + mappingRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.MappingRule.Builder getMappingRuleBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMappingRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.MappingRuleOrBuilder getMappingRuleOrBuilder() { + if (mappingRuleBuilder_ != null) { + return mappingRuleBuilder_.getMessageOrBuilder(); + } else { + return mappingRule_ == null + ? com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance() + : mappingRule_; + } + } + /** + * + * + *
+     * Required. Represents a [mapping rule]
+     * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+     * object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRule, + com.google.cloud.clouddms.v1.MappingRule.Builder, + com.google.cloud.clouddms.v1.MappingRuleOrBuilder> + getMappingRuleFieldBuilder() { + if (mappingRuleBuilder_ == null) { + mappingRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRule, + com.google.cloud.clouddms.v1.MappingRule.Builder, + com.google.cloud.clouddms.v1.MappingRuleOrBuilder>( + getMappingRule(), getParentForChildren(), isClean()); + mappingRule_ = null; + } + return mappingRuleBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CreateMappingRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CreateMappingRuleRequest) + private static final com.google.cloud.clouddms.v1.CreateMappingRuleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CreateMappingRuleRequest(); + } + + public static com.google.cloud.clouddms.v1.CreateMappingRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMappingRuleRequest 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.CreateMappingRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMappingRuleRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMappingRuleRequestOrBuilder.java new file mode 100644 index 000000000000..d2067fdc62d8 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMappingRuleRequestOrBuilder.java @@ -0,0 +1,163 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface CreateMappingRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CreateMappingRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent which owns this collection of mapping rules.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent which owns this collection of mapping rules.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the rule to create.
+   * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mappingRuleId. + */ + java.lang.String getMappingRuleId(); + /** + * + * + *
+   * Required. The ID of the rule to create.
+   * 
+ * + * string mapping_rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mappingRuleId. + */ + com.google.protobuf.ByteString getMappingRuleIdBytes(); + + /** + * + * + *
+   * Required. Represents a [mapping rule]
+   * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+   * object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mappingRule field is set. + */ + boolean hasMappingRule(); + /** + * + * + *
+   * Required. Represents a [mapping rule]
+   * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+   * object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mappingRule. + */ + com.google.cloud.clouddms.v1.MappingRule getMappingRule(); + /** + * + * + *
+   * Required. Represents a [mapping rule]
+   * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+   * object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule mapping_rule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.MappingRuleOrBuilder getMappingRuleOrBuilder(); + + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java index 695a93968653..f5eba72c05ab 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java @@ -241,8 +241,8 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild * * *
-   * A unique ID used to identify the request. If the server receives two
-   * requests with the same ID, then the second request is ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    *
    * It is recommended to always set this value to a UUID.
    *
@@ -250,7 +250,7 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -270,8 +270,8 @@ public java.lang.String getRequestId() { * * *
-   * A unique ID used to identify the request. If the server receives two
-   * requests with the same ID, then the second request is ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    *
    * It is recommended to always set this value to a UUID.
    *
@@ -279,7 +279,7 @@ public java.lang.String getRequestId() {
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ @@ -1167,8 +1167,8 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild * * *
-     * A unique ID used to identify the request. If the server receives two
-     * requests with the same ID, then the second request is ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      *
      * It is recommended to always set this value to a UUID.
      *
@@ -1176,7 +1176,7 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -1195,8 +1195,8 @@ public java.lang.String getRequestId() { * * *
-     * A unique ID used to identify the request. If the server receives two
-     * requests with the same ID, then the second request is ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      *
      * It is recommended to always set this value to a UUID.
      *
@@ -1204,7 +1204,7 @@ public java.lang.String getRequestId() {
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ @@ -1223,8 +1223,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * A unique ID used to identify the request. If the server receives two
-     * requests with the same ID, then the second request is ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      *
      * It is recommended to always set this value to a UUID.
      *
@@ -1232,7 +1232,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The requestId to set. * @return This builder for chaining. @@ -1250,8 +1250,8 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * A unique ID used to identify the request. If the server receives two
-     * requests with the same ID, then the second request is ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      *
      * It is recommended to always set this value to a UUID.
      *
@@ -1259,7 +1259,7 @@ public Builder setRequestId(java.lang.String value) {
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1273,8 +1273,8 @@ public Builder clearRequestId() { * * *
-     * A unique ID used to identify the request. If the server receives two
-     * requests with the same ID, then the second request is ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      *
      * It is recommended to always set this value to a UUID.
      *
@@ -1282,7 +1282,7 @@ public Builder clearRequestId() {
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java index 9b5135a3bc71..f317fe3719f0 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java @@ -128,8 +128,8 @@ public interface CreateMigrationJobRequestOrBuilder * * *
-   * A unique ID used to identify the request. If the server receives two
-   * requests with the same ID, then the second request is ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    *
    * It is recommended to always set this value to a UUID.
    *
@@ -137,7 +137,7 @@ public interface CreateMigrationJobRequestOrBuilder
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -146,8 +146,8 @@ public interface CreateMigrationJobRequestOrBuilder * * *
-   * A unique ID used to identify the request. If the server receives two
-   * requests with the same ID, then the second request is ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    *
    * It is recommended to always set this value to a UUID.
    *
@@ -155,7 +155,7 @@ public interface CreateMigrationJobRequestOrBuilder
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntity.java index 6fe350c16afe..b41665b93c0d 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntity.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntity.java @@ -45,6 +45,8 @@ private DatabaseEntity() { tree_ = 0; entityType_ = 0; mappings_ = java.util.Collections.emptyList(); + entityDdl_ = java.util.Collections.emptyList(); + issues_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -256,6 +258,7 @@ public enum EntityBodyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATABASE(101), SCHEMA(102), TABLE(103), VIEW(104), @@ -264,6 +267,8 @@ public enum EntityBodyCase DATABASE_FUNCTION(107), SYNONYM(108), DATABASE_PACKAGE(109), + UDT(110), + MATERIALIZED_VIEW(111), ENTITYBODY_NOT_SET(0); private final int value; @@ -282,6 +287,8 @@ public static EntityBodyCase valueOf(int value) { public static EntityBodyCase forNumber(int value) { switch (value) { + case 101: + return DATABASE; case 102: return SCHEMA; case 103: @@ -298,6 +305,10 @@ public static EntityBodyCase forNumber(int value) { return SYNONYM; case 109: return DATABASE_PACKAGE; + case 110: + return UDT; + case 111: + return MATERIALIZED_VIEW; case 0: return ENTITYBODY_NOT_SET; default: @@ -584,6 +595,209 @@ public com.google.cloud.clouddms.v1.EntityMappingOrBuilder getMappingsOrBuilder( return mappings_.get(index); } + public static final int ENTITY_DDL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List entityDdl_; + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + @java.lang.Override + public java.util.List getEntityDdlList() { + return entityDdl_; + } + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + @java.lang.Override + public java.util.List + getEntityDdlOrBuilderList() { + return entityDdl_; + } + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + @java.lang.Override + public int getEntityDdlCount() { + return entityDdl_.size(); + } + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityDdl getEntityDdl(int index) { + return entityDdl_.get(index); + } + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityDdlOrBuilder getEntityDdlOrBuilder(int index) { + return entityDdl_.get(index); + } + + public static final int ISSUES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List issues_; + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + @java.lang.Override + public java.util.List getIssuesList() { + return issues_; + } + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + @java.lang.Override + public java.util.List + getIssuesOrBuilderList() { + return issues_; + } + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + @java.lang.Override + public int getIssuesCount() { + return issues_.size(); + } + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue getIssues(int index) { + return issues_.get(index); + } + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssueOrBuilder getIssuesOrBuilder(int index) { + return issues_.get(index); + } + + public static final int DATABASE_FIELD_NUMBER = 101; + /** + * + * + *
+   * Database.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + * + * @return Whether the database field is set. + */ + @java.lang.Override + public boolean hasDatabase() { + return entityBodyCase_ == 101; + } + /** + * + * + *
+   * Database.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + * + * @return The database. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseInstanceEntity getDatabase() { + if (entityBodyCase_ == 101) { + return (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Database.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseInstanceEntityOrBuilder getDatabaseOrBuilder() { + if (entityBodyCase_ == 101) { + return (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance(); + } + public static final int SCHEMA_FIELD_NUMBER = 102; /** * @@ -992,6 +1206,109 @@ public com.google.cloud.clouddms.v1.PackageEntityOrBuilder getDatabasePackageOrB return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); } + public static final int UDT_FIELD_NUMBER = 110; + /** + * + * + *
+   * UDT.
+   * 
+ * + * .google.cloud.clouddms.v1.UDTEntity udt = 110; + * + * @return Whether the udt field is set. + */ + @java.lang.Override + public boolean hasUdt() { + return entityBodyCase_ == 110; + } + /** + * + * + *
+   * UDT.
+   * 
+ * + * .google.cloud.clouddms.v1.UDTEntity udt = 110; + * + * @return The udt. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.UDTEntity getUdt() { + if (entityBodyCase_ == 110) { + return (com.google.cloud.clouddms.v1.UDTEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance(); + } + /** + * + * + *
+   * UDT.
+   * 
+ * + * .google.cloud.clouddms.v1.UDTEntity udt = 110; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.UDTEntityOrBuilder getUdtOrBuilder() { + if (entityBodyCase_ == 110) { + return (com.google.cloud.clouddms.v1.UDTEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance(); + } + + public static final int MATERIALIZED_VIEW_FIELD_NUMBER = 111; + /** + * + * + *
+   * Materialized view.
+   * 
+ * + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; + * + * @return Whether the materializedView field is set. + */ + @java.lang.Override + public boolean hasMaterializedView() { + return entityBodyCase_ == 111; + } + /** + * + * + *
+   * Materialized view.
+   * 
+ * + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; + * + * @return The materializedView. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MaterializedViewEntity getMaterializedView() { + if (entityBodyCase_ == 111) { + return (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Materialized view.
+   * 
+ * + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MaterializedViewEntityOrBuilder + getMaterializedViewOrBuilder() { + if (entityBodyCase_ == 111) { + return (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1024,6 +1341,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < mappings_.size(); i++) { output.writeMessage(5, mappings_.get(i)); } + for (int i = 0; i < entityDdl_.size(); i++) { + output.writeMessage(6, entityDdl_.get(i)); + } + for (int i = 0; i < issues_.size(); i++) { + output.writeMessage(7, issues_.get(i)); + } + if (entityBodyCase_ == 101) { + output.writeMessage(101, (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_); + } if (entityBodyCase_ == 102) { output.writeMessage(102, (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_); } @@ -1048,6 +1374,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (entityBodyCase_ == 109) { output.writeMessage(109, (com.google.cloud.clouddms.v1.PackageEntity) entityBody_); } + if (entityBodyCase_ == 110) { + output.writeMessage(110, (com.google.cloud.clouddms.v1.UDTEntity) entityBody_); + } + if (entityBodyCase_ == 111) { + output.writeMessage(111, (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_); + } getUnknownFields().writeTo(output); } @@ -1075,6 +1407,17 @@ public int getSerializedSize() { for (int i = 0; i < mappings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, mappings_.get(i)); } + for (int i = 0; i < entityDdl_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, entityDdl_.get(i)); + } + for (int i = 0; i < issues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, issues_.get(i)); + } + if (entityBodyCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_); + } if (entityBodyCase_ == 102) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1115,6 +1458,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 109, (com.google.cloud.clouddms.v1.PackageEntity) entityBody_); } + if (entityBodyCase_ == 110) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 110, (com.google.cloud.clouddms.v1.UDTEntity) entityBody_); + } + if (entityBodyCase_ == 111) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 111, (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1136,8 +1489,13 @@ public boolean equals(final java.lang.Object obj) { if (tree_ != other.tree_) return false; if (entityType_ != other.entityType_) return false; if (!getMappingsList().equals(other.getMappingsList())) return false; + if (!getEntityDdlList().equals(other.getEntityDdlList())) return false; + if (!getIssuesList().equals(other.getIssuesList())) return false; if (!getEntityBodyCase().equals(other.getEntityBodyCase())) return false; switch (entityBodyCase_) { + case 101: + if (!getDatabase().equals(other.getDatabase())) return false; + break; case 102: if (!getSchema().equals(other.getSchema())) return false; break; @@ -1162,6 +1520,12 @@ public boolean equals(final java.lang.Object obj) { case 109: if (!getDatabasePackage().equals(other.getDatabasePackage())) return false; break; + case 110: + if (!getUdt().equals(other.getUdt())) return false; + break; + case 111: + if (!getMaterializedView().equals(other.getMaterializedView())) return false; + break; case 0: default: } @@ -1188,7 +1552,19 @@ public int hashCode() { hash = (37 * hash) + MAPPINGS_FIELD_NUMBER; hash = (53 * hash) + getMappingsList().hashCode(); } + if (getEntityDdlCount() > 0) { + hash = (37 * hash) + ENTITY_DDL_FIELD_NUMBER; + hash = (53 * hash) + getEntityDdlList().hashCode(); + } + if (getIssuesCount() > 0) { + hash = (37 * hash) + ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getIssuesList().hashCode(); + } switch (entityBodyCase_) { + case 101: + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + break; case 102: hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); @@ -1221,6 +1597,14 @@ public int hashCode() { hash = (37 * hash) + DATABASE_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getDatabasePackage().hashCode(); break; + case 110: + hash = (37 * hash) + UDT_FIELD_NUMBER; + hash = (53 * hash) + getUdt().hashCode(); + break; + case 111: + hash = (37 * hash) + MATERIALIZED_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getMaterializedView().hashCode(); + break; case 0: default: } @@ -1376,6 +1760,23 @@ public Builder clear() { mappingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + if (entityDdlBuilder_ == null) { + entityDdl_ = java.util.Collections.emptyList(); + } else { + entityDdl_ = null; + entityDdlBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + } else { + issues_ = null; + issuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (databaseBuilder_ != null) { + databaseBuilder_.clear(); + } if (schemaBuilder_ != null) { schemaBuilder_.clear(); } @@ -1400,6 +1801,12 @@ public Builder clear() { if (databasePackageBuilder_ != null) { databasePackageBuilder_.clear(); } + if (udtBuilder_ != null) { + udtBuilder_.clear(); + } + if (materializedViewBuilder_ != null) { + materializedViewBuilder_.clear(); + } entityBodyCase_ = 0; entityBody_ = null; return this; @@ -1448,6 +1855,24 @@ private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.DatabaseEnt } else { result.mappings_ = mappingsBuilder_.build(); } + if (entityDdlBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + entityDdl_ = java.util.Collections.unmodifiableList(entityDdl_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.entityDdl_ = entityDdl_; + } else { + result.entityDdl_ = entityDdlBuilder_.build(); + } + if (issuesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + issues_ = java.util.Collections.unmodifiableList(issues_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.issues_ = issues_; + } else { + result.issues_ = issuesBuilder_.build(); + } } private void buildPartial0(com.google.cloud.clouddms.v1.DatabaseEntity result) { @@ -1469,6 +1894,9 @@ private void buildPartial0(com.google.cloud.clouddms.v1.DatabaseEntity result) { private void buildPartialOneofs(com.google.cloud.clouddms.v1.DatabaseEntity result) { result.entityBodyCase_ = entityBodyCase_; result.entityBody_ = this.entityBody_; + if (entityBodyCase_ == 101 && databaseBuilder_ != null) { + result.entityBody_ = databaseBuilder_.build(); + } if (entityBodyCase_ == 102 && schemaBuilder_ != null) { result.entityBody_ = schemaBuilder_.build(); } @@ -1493,6 +1921,12 @@ private void buildPartialOneofs(com.google.cloud.clouddms.v1.DatabaseEntity resu if (entityBodyCase_ == 109 && databasePackageBuilder_ != null) { result.entityBody_ = databasePackageBuilder_.build(); } + if (entityBodyCase_ == 110 && udtBuilder_ != null) { + result.entityBody_ = udtBuilder_.build(); + } + if (entityBodyCase_ == 111 && materializedViewBuilder_ != null) { + result.entityBody_ = materializedViewBuilder_.build(); + } } @java.lang.Override @@ -1583,10 +2017,69 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.DatabaseEntity other) { } } } + if (entityDdlBuilder_ == null) { + if (!other.entityDdl_.isEmpty()) { + if (entityDdl_.isEmpty()) { + entityDdl_ = other.entityDdl_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureEntityDdlIsMutable(); + entityDdl_.addAll(other.entityDdl_); + } + onChanged(); + } + } else { + if (!other.entityDdl_.isEmpty()) { + if (entityDdlBuilder_.isEmpty()) { + entityDdlBuilder_.dispose(); + entityDdlBuilder_ = null; + entityDdl_ = other.entityDdl_; + bitField0_ = (bitField0_ & ~0x00000020); + entityDdlBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntityDdlFieldBuilder() + : null; + } else { + entityDdlBuilder_.addAllMessages(other.entityDdl_); + } + } + } + if (issuesBuilder_ == null) { + if (!other.issues_.isEmpty()) { + if (issues_.isEmpty()) { + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureIssuesIsMutable(); + issues_.addAll(other.issues_); + } + onChanged(); + } + } else { + if (!other.issues_.isEmpty()) { + if (issuesBuilder_.isEmpty()) { + issuesBuilder_.dispose(); + issuesBuilder_ = null; + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000040); + issuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIssuesFieldBuilder() + : null; + } else { + issuesBuilder_.addAllMessages(other.issues_); + } + } + } switch (other.getEntityBodyCase()) { - case SCHEMA: + case DATABASE: { - mergeSchema(other.getSchema()); + mergeDatabase(other.getDatabase()); + break; + } + case SCHEMA: + { + mergeSchema(other.getSchema()); break; } case TABLE: @@ -1624,6 +2117,16 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.DatabaseEntity other) { mergeDatabasePackage(other.getDatabasePackage()); break; } + case UDT: + { + mergeUdt(other.getUdt()); + break; + } + case MATERIALIZED_VIEW: + { + mergeMaterializedView(other.getMaterializedView()); + break; + } case ENTITYBODY_NOT_SET: { break; @@ -1692,6 +2195,38 @@ public Builder mergeFrom( } break; } // case 42 + case 50: + { + com.google.cloud.clouddms.v1.EntityDdl m = + input.readMessage( + com.google.cloud.clouddms.v1.EntityDdl.parser(), extensionRegistry); + if (entityDdlBuilder_ == null) { + ensureEntityDdlIsMutable(); + entityDdl_.add(m); + } else { + entityDdlBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.clouddms.v1.EntityIssue m = + input.readMessage( + com.google.cloud.clouddms.v1.EntityIssue.parser(), extensionRegistry); + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(m); + } else { + issuesBuilder_.addMessage(m); + } + break; + } // case 58 + case 810: + { + input.readMessage(getDatabaseFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 101; + break; + } // case 810 case 818: { input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); @@ -1741,6 +2276,19 @@ public Builder mergeFrom( entityBodyCase_ = 109; break; } // case 874 + case 882: + { + input.readMessage(getUdtFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 110; + break; + } // case 882 + case 890: + { + input.readMessage( + getMaterializedViewFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 111; + break; + } // case 890 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2607,146 +3155,167 @@ public com.google.cloud.clouddms.v1.EntityMapping.Builder addMappingsBuilder(int return mappingsBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SchemaEntity, - com.google.cloud.clouddms.v1.SchemaEntity.Builder, - com.google.cloud.clouddms.v1.SchemaEntityOrBuilder> - schemaBuilder_; + private java.util.List entityDdl_ = + java.util.Collections.emptyList(); + + private void ensureEntityDdlIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + entityDdl_ = new java.util.ArrayList(entityDdl_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityDdl, + com.google.cloud.clouddms.v1.EntityDdl.Builder, + com.google.cloud.clouddms.v1.EntityDdlOrBuilder> + entityDdlBuilder_; + /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; - * - * @return Whether the schema field is set. + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - @java.lang.Override - public boolean hasSchema() { - return entityBodyCase_ == 102; + public java.util.List getEntityDdlList() { + if (entityDdlBuilder_ == null) { + return java.util.Collections.unmodifiableList(entityDdl_); + } else { + return entityDdlBuilder_.getMessageList(); + } } /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + public int getEntityDdlCount() { + if (entityDdlBuilder_ == null) { + return entityDdl_.size(); + } else { + return entityDdlBuilder_.getCount(); + } + } + /** * - * @return The schema. + * + *
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - @java.lang.Override - public com.google.cloud.clouddms.v1.SchemaEntity getSchema() { - if (schemaBuilder_ == null) { - if (entityBodyCase_ == 102) { - return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; - } - return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + public com.google.cloud.clouddms.v1.EntityDdl getEntityDdl(int index) { + if (entityDdlBuilder_ == null) { + return entityDdl_.get(index); } else { - if (entityBodyCase_ == 102) { - return schemaBuilder_.getMessage(); - } - return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + return entityDdlBuilder_.getMessage(index); } } /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder setSchema(com.google.cloud.clouddms.v1.SchemaEntity value) { - if (schemaBuilder_ == null) { + public Builder setEntityDdl(int index, com.google.cloud.clouddms.v1.EntityDdl value) { + if (entityDdlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - entityBody_ = value; + ensureEntityDdlIsMutable(); + entityDdl_.set(index, value); onChanged(); } else { - schemaBuilder_.setMessage(value); + entityDdlBuilder_.setMessage(index, value); } - entityBodyCase_ = 102; return this; } /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder setSchema(com.google.cloud.clouddms.v1.SchemaEntity.Builder builderForValue) { - if (schemaBuilder_ == null) { - entityBody_ = builderForValue.build(); + public Builder setEntityDdl( + int index, com.google.cloud.clouddms.v1.EntityDdl.Builder builderForValue) { + if (entityDdlBuilder_ == null) { + ensureEntityDdlIsMutable(); + entityDdl_.set(index, builderForValue.build()); onChanged(); } else { - schemaBuilder_.setMessage(builderForValue.build()); + entityDdlBuilder_.setMessage(index, builderForValue.build()); } - entityBodyCase_ = 102; return this; } /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder mergeSchema(com.google.cloud.clouddms.v1.SchemaEntity value) { - if (schemaBuilder_ == null) { - if (entityBodyCase_ == 102 - && entityBody_ != com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance()) { - entityBody_ = - com.google.cloud.clouddms.v1.SchemaEntity.newBuilder( - (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_) - .mergeFrom(value) - .buildPartial(); - } else { - entityBody_ = value; + public Builder addEntityDdl(com.google.cloud.clouddms.v1.EntityDdl value) { + if (entityDdlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureEntityDdlIsMutable(); + entityDdl_.add(value); onChanged(); } else { - if (entityBodyCase_ == 102) { - schemaBuilder_.mergeFrom(value); - } else { - schemaBuilder_.setMessage(value); - } + entityDdlBuilder_.addMessage(value); } - entityBodyCase_ = 102; return this; } /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder clearSchema() { - if (schemaBuilder_ == null) { - if (entityBodyCase_ == 102) { - entityBodyCase_ = 0; - entityBody_ = null; - onChanged(); + public Builder addEntityDdl(int index, com.google.cloud.clouddms.v1.EntityDdl value) { + if (entityDdlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureEntityDdlIsMutable(); + entityDdl_.add(index, value); + onChanged(); } else { - if (entityBodyCase_ == 102) { - entityBodyCase_ = 0; - entityBody_ = null; - } - schemaBuilder_.clear(); + entityDdlBuilder_.addMessage(index, value); } return this; } @@ -2754,207 +3323,1546 @@ public Builder clearSchema() { * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public com.google.cloud.clouddms.v1.SchemaEntity.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); + public Builder addEntityDdl(com.google.cloud.clouddms.v1.EntityDdl.Builder builderForValue) { + if (entityDdlBuilder_ == null) { + ensureEntityDdlIsMutable(); + entityDdl_.add(builderForValue.build()); + onChanged(); + } else { + entityDdlBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - @java.lang.Override - public com.google.cloud.clouddms.v1.SchemaEntityOrBuilder getSchemaOrBuilder() { - if ((entityBodyCase_ == 102) && (schemaBuilder_ != null)) { - return schemaBuilder_.getMessageOrBuilder(); + public Builder addEntityDdl( + int index, com.google.cloud.clouddms.v1.EntityDdl.Builder builderForValue) { + if (entityDdlBuilder_ == null) { + ensureEntityDdlIsMutable(); + entityDdl_.add(index, builderForValue.build()); + onChanged(); } else { - if (entityBodyCase_ == 102) { - return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; - } - return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + entityDdlBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Schema.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SchemaEntity, - com.google.cloud.clouddms.v1.SchemaEntity.Builder, - com.google.cloud.clouddms.v1.SchemaEntityOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - if (!(entityBodyCase_ == 102)) { - entityBody_ = com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); - } - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SchemaEntity, - com.google.cloud.clouddms.v1.SchemaEntity.Builder, - com.google.cloud.clouddms.v1.SchemaEntityOrBuilder>( - (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_, - getParentForChildren(), - isClean()); - entityBody_ = null; + public Builder addAllEntityDdl( + java.lang.Iterable values) { + if (entityDdlBuilder_ == null) { + ensureEntityDdlIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityDdl_); + onChanged(); + } else { + entityDdlBuilder_.addAllMessages(values); } - entityBodyCase_ = 102; - onChanged(); - return schemaBuilder_; + return this; } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.TableEntity, - com.google.cloud.clouddms.v1.TableEntity.Builder, - com.google.cloud.clouddms.v1.TableEntityOrBuilder> - tableBuilder_; /** * * *
-     * Table.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; - * - * @return Whether the table field is set. + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - @java.lang.Override - public boolean hasTable() { - return entityBodyCase_ == 103; + public Builder clearEntityDdl() { + if (entityDdlBuilder_ == null) { + entityDdl_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + entityDdlBuilder_.clear(); + } + return this; } /** * * *
-     * Table.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; - * - * @return The table. + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - @java.lang.Override - public com.google.cloud.clouddms.v1.TableEntity getTable() { - if (tableBuilder_ == null) { - if (entityBodyCase_ == 103) { - return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; - } - return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + public Builder removeEntityDdl(int index) { + if (entityDdlBuilder_ == null) { + ensureEntityDdlIsMutable(); + entityDdl_.remove(index); + onChanged(); } else { - if (entityBodyCase_ == 103) { - return tableBuilder_.getMessage(); - } - return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + entityDdlBuilder_.remove(index); } + return this; } /** * * *
-     * Table.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder setTable(com.google.cloud.clouddms.v1.TableEntity value) { - if (tableBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityBody_ = value; - onChanged(); - } else { - tableBuilder_.setMessage(value); - } - entityBodyCase_ = 103; - return this; + public com.google.cloud.clouddms.v1.EntityDdl.Builder getEntityDdlBuilder(int index) { + return getEntityDdlFieldBuilder().getBuilder(index); } /** * * *
-     * Table.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder setTable(com.google.cloud.clouddms.v1.TableEntity.Builder builderForValue) { - if (tableBuilder_ == null) { - entityBody_ = builderForValue.build(); - onChanged(); + public com.google.cloud.clouddms.v1.EntityDdlOrBuilder getEntityDdlOrBuilder(int index) { + if (entityDdlBuilder_ == null) { + return entityDdl_.get(index); } else { - tableBuilder_.setMessage(builderForValue.build()); + return entityDdlBuilder_.getMessageOrBuilder(index); } - entityBodyCase_ = 103; - return this; } /** * * *
-     * Table.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder mergeTable(com.google.cloud.clouddms.v1.TableEntity value) { - if (tableBuilder_ == null) { - if (entityBodyCase_ == 103 - && entityBody_ != com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance()) { - entityBody_ = - com.google.cloud.clouddms.v1.TableEntity.newBuilder( - (com.google.cloud.clouddms.v1.TableEntity) entityBody_) - .mergeFrom(value) - .buildPartial(); - } else { - entityBody_ = value; - } - onChanged(); + public java.util.List + getEntityDdlOrBuilderList() { + if (entityDdlBuilder_ != null) { + return entityDdlBuilder_.getMessageOrBuilderList(); } else { - if (entityBodyCase_ == 103) { - tableBuilder_.mergeFrom(value); - } else { - tableBuilder_.setMessage(value); - } + return java.util.Collections.unmodifiableList(entityDdl_); } - entityBodyCase_ = 103; - return this; } /** * * *
-     * Table.
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; */ - public Builder clearTable() { - if (tableBuilder_ == null) { - if (entityBodyCase_ == 103) { - entityBodyCase_ = 0; - entityBody_ = null; - onChanged(); + public com.google.cloud.clouddms.v1.EntityDdl.Builder addEntityDdlBuilder() { + return getEntityDdlFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.EntityDdl.getDefaultInstance()); + } + /** + * + * + *
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + public com.google.cloud.clouddms.v1.EntityDdl.Builder addEntityDdlBuilder(int index) { + return getEntityDdlFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.EntityDdl.getDefaultInstance()); + } + /** + * + * + *
+     * Details about the entity DDL script. Multiple DDL scripts are provided for
+     * child entities such as a table entity will have one DDL for the table with
+     * additional DDLs for each index, constraint and such.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + public java.util.List + getEntityDdlBuilderList() { + return getEntityDdlFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityDdl, + com.google.cloud.clouddms.v1.EntityDdl.Builder, + com.google.cloud.clouddms.v1.EntityDdlOrBuilder> + getEntityDdlFieldBuilder() { + if (entityDdlBuilder_ == null) { + entityDdlBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityDdl, + com.google.cloud.clouddms.v1.EntityDdl.Builder, + com.google.cloud.clouddms.v1.EntityDdlOrBuilder>( + entityDdl_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + entityDdl_ = null; + } + return entityDdlBuilder_; + } + + private java.util.List issues_ = + java.util.Collections.emptyList(); + + private void ensureIssuesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + issues_ = new java.util.ArrayList(issues_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityIssue, + com.google.cloud.clouddms.v1.EntityIssue.Builder, + com.google.cloud.clouddms.v1.EntityIssueOrBuilder> + issuesBuilder_; + + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public java.util.List getIssuesList() { + if (issuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(issues_); + } else { + return issuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public int getIssuesCount() { + if (issuesBuilder_ == null) { + return issues_.size(); + } else { + return issuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public com.google.cloud.clouddms.v1.EntityIssue getIssues(int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder setIssues(int index, com.google.cloud.clouddms.v1.EntityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.set(index, value); + onChanged(); + } else { + issuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder setIssues( + int index, com.google.cloud.clouddms.v1.EntityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.set(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder addIssues(com.google.cloud.clouddms.v1.EntityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(value); + onChanged(); + } else { + issuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder addIssues(int index, com.google.cloud.clouddms.v1.EntityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(index, value); + onChanged(); + } else { + issuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder addIssues(com.google.cloud.clouddms.v1.EntityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder addIssues( + int index, com.google.cloud.clouddms.v1.EntityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder addAllIssues( + java.lang.Iterable values) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issues_); + onChanged(); + } else { + issuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder clearIssues() { + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + issuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public Builder removeIssues(int index) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.remove(index); + onChanged(); + } else { + issuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public com.google.cloud.clouddms.v1.EntityIssue.Builder getIssuesBuilder(int index) { + return getIssuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public com.google.cloud.clouddms.v1.EntityIssueOrBuilder getIssuesOrBuilder(int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public java.util.List + getIssuesOrBuilderList() { + if (issuesBuilder_ != null) { + return issuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(issues_); + } + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public com.google.cloud.clouddms.v1.EntityIssue.Builder addIssuesBuilder() { + return getIssuesFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.EntityIssue.getDefaultInstance()); + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public com.google.cloud.clouddms.v1.EntityIssue.Builder addIssuesBuilder(int index) { + return getIssuesFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.EntityIssue.getDefaultInstance()); + } + /** + * + * + *
+     * Details about the various issues found for the entity.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + public java.util.List getIssuesBuilderList() { + return getIssuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityIssue, + com.google.cloud.clouddms.v1.EntityIssue.Builder, + com.google.cloud.clouddms.v1.EntityIssueOrBuilder> + getIssuesFieldBuilder() { + if (issuesBuilder_ == null) { + issuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityIssue, + com.google.cloud.clouddms.v1.EntityIssue.Builder, + com.google.cloud.clouddms.v1.EntityIssueOrBuilder>( + issues_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + issues_ = null; + } + return issuesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseInstanceEntity, + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.Builder, + com.google.cloud.clouddms.v1.DatabaseInstanceEntityOrBuilder> + databaseBuilder_; + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + * + * @return Whether the database field is set. + */ + @java.lang.Override + public boolean hasDatabase() { + return entityBodyCase_ == 101; + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + * + * @return The database. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseInstanceEntity getDatabase() { + if (databaseBuilder_ == null) { + if (entityBodyCase_ == 101) { + return (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 101) { + return databaseBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + public Builder setDatabase(com.google.cloud.clouddms.v1.DatabaseInstanceEntity value) { + if (databaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + databaseBuilder_.setMessage(value); + } + entityBodyCase_ = 101; + return this; + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + public Builder setDatabase( + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.Builder builderForValue) { + if (databaseBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + databaseBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 101; + return this; + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + public Builder mergeDatabase(com.google.cloud.clouddms.v1.DatabaseInstanceEntity value) { + if (databaseBuilder_ == null) { + if (entityBodyCase_ == 101 + && entityBody_ + != com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.newBuilder( + (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 101) { + databaseBuilder_.mergeFrom(value); + } else { + databaseBuilder_.setMessage(value); + } + } + entityBodyCase_ = 101; + return this; + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + public Builder clearDatabase() { + if (databaseBuilder_ == null) { + if (entityBodyCase_ == 101) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 101) { + entityBodyCase_ = 0; + entityBody_ = null; + } + databaseBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + public com.google.cloud.clouddms.v1.DatabaseInstanceEntity.Builder getDatabaseBuilder() { + return getDatabaseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseInstanceEntityOrBuilder getDatabaseOrBuilder() { + if ((entityBodyCase_ == 101) && (databaseBuilder_ != null)) { + return databaseBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 101) { + return (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Database.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseInstanceEntity, + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.Builder, + com.google.cloud.clouddms.v1.DatabaseInstanceEntityOrBuilder> + getDatabaseFieldBuilder() { + if (databaseBuilder_ == null) { + if (!(entityBodyCase_ == 101)) { + entityBody_ = com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance(); + } + databaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseInstanceEntity, + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.Builder, + com.google.cloud.clouddms.v1.DatabaseInstanceEntityOrBuilder>( + (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 101; + onChanged(); + return databaseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SchemaEntity, + com.google.cloud.clouddms.v1.SchemaEntity.Builder, + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder> + schemaBuilder_; + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return entityBodyCase_ == 102; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntity getSchema() { + if (schemaBuilder_ == null) { + if (entityBodyCase_ == 102) { + return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 102) { + return schemaBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder setSchema(com.google.cloud.clouddms.v1.SchemaEntity value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + entityBodyCase_ = 102; + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder setSchema(com.google.cloud.clouddms.v1.SchemaEntity.Builder builderForValue) { + if (schemaBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 102; + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder mergeSchema(com.google.cloud.clouddms.v1.SchemaEntity value) { + if (schemaBuilder_ == null) { + if (entityBodyCase_ == 102 + && entityBody_ != com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.SchemaEntity.newBuilder( + (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 102) { + schemaBuilder_.mergeFrom(value); + } else { + schemaBuilder_.setMessage(value); + } + } + entityBodyCase_ = 102; + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (entityBodyCase_ == 102) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 102) { + entityBodyCase_ = 0; + entityBody_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public com.google.cloud.clouddms.v1.SchemaEntity.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntityOrBuilder getSchemaOrBuilder() { + if ((entityBodyCase_ == 102) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 102) { + return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SchemaEntity, + com.google.cloud.clouddms.v1.SchemaEntity.Builder, + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(entityBodyCase_ == 102)) { + entityBody_ = com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SchemaEntity, + com.google.cloud.clouddms.v1.SchemaEntity.Builder, + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder>( + (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 102; + onChanged(); + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.TableEntity, + com.google.cloud.clouddms.v1.TableEntity.Builder, + com.google.cloud.clouddms.v1.TableEntityOrBuilder> + tableBuilder_; + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return Whether the table field is set. + */ + @java.lang.Override + public boolean hasTable() { + return entityBodyCase_ == 103; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return The table. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntity getTable() { + if (tableBuilder_ == null) { + if (entityBodyCase_ == 103) { + return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 103) { + return tableBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder setTable(com.google.cloud.clouddms.v1.TableEntity value) { + if (tableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + tableBuilder_.setMessage(value); + } + entityBodyCase_ = 103; + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder setTable(com.google.cloud.clouddms.v1.TableEntity.Builder builderForValue) { + if (tableBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + tableBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 103; + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder mergeTable(com.google.cloud.clouddms.v1.TableEntity value) { + if (tableBuilder_ == null) { + if (entityBodyCase_ == 103 + && entityBody_ != com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.TableEntity.newBuilder( + (com.google.cloud.clouddms.v1.TableEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 103) { + tableBuilder_.mergeFrom(value); + } else { + tableBuilder_.setMessage(value); + } + } + entityBodyCase_ = 103; + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder clearTable() { + if (tableBuilder_ == null) { + if (entityBodyCase_ == 103) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 103) { + entityBodyCase_ = 0; + entityBody_ = null; + } + tableBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public com.google.cloud.clouddms.v1.TableEntity.Builder getTableBuilder() { + return getTableFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntityOrBuilder getTableOrBuilder() { + if ((entityBodyCase_ == 103) && (tableBuilder_ != null)) { + return tableBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 103) { + return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.TableEntity, + com.google.cloud.clouddms.v1.TableEntity.Builder, + com.google.cloud.clouddms.v1.TableEntityOrBuilder> + getTableFieldBuilder() { + if (tableBuilder_ == null) { + if (!(entityBodyCase_ == 103)) { + entityBody_ = com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + tableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.TableEntity, + com.google.cloud.clouddms.v1.TableEntity.Builder, + com.google.cloud.clouddms.v1.TableEntityOrBuilder>( + (com.google.cloud.clouddms.v1.TableEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 103; + onChanged(); + return tableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ViewEntity, + com.google.cloud.clouddms.v1.ViewEntity.Builder, + com.google.cloud.clouddms.v1.ViewEntityOrBuilder> + viewBuilder_; + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return Whether the view field is set. + */ + @java.lang.Override + public boolean hasView() { + return entityBodyCase_ == 104; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntity getView() { + if (viewBuilder_ == null) { + if (entityBodyCase_ == 104) { + return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 104) { + return viewBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder setView(com.google.cloud.clouddms.v1.ViewEntity value) { + if (viewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + viewBuilder_.setMessage(value); + } + entityBodyCase_ = 104; + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder setView(com.google.cloud.clouddms.v1.ViewEntity.Builder builderForValue) { + if (viewBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + viewBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 104; + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder mergeView(com.google.cloud.clouddms.v1.ViewEntity value) { + if (viewBuilder_ == null) { + if (entityBodyCase_ == 104 + && entityBody_ != com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.ViewEntity.newBuilder( + (com.google.cloud.clouddms.v1.ViewEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 104) { + viewBuilder_.mergeFrom(value); + } else { + viewBuilder_.setMessage(value); + } + } + entityBodyCase_ = 104; + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder clearView() { + if (viewBuilder_ == null) { + if (entityBodyCase_ == 104) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 104) { + entityBodyCase_ = 0; + entityBody_ = null; + } + viewBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public com.google.cloud.clouddms.v1.ViewEntity.Builder getViewBuilder() { + return getViewFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntityOrBuilder getViewOrBuilder() { + if ((entityBodyCase_ == 104) && (viewBuilder_ != null)) { + return viewBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 104) { + return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ViewEntity, + com.google.cloud.clouddms.v1.ViewEntity.Builder, + com.google.cloud.clouddms.v1.ViewEntityOrBuilder> + getViewFieldBuilder() { + if (viewBuilder_ == null) { + if (!(entityBodyCase_ == 104)) { + entityBody_ = com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + viewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ViewEntity, + com.google.cloud.clouddms.v1.ViewEntity.Builder, + com.google.cloud.clouddms.v1.ViewEntityOrBuilder>( + (com.google.cloud.clouddms.v1.ViewEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 104; + onChanged(); + return viewBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SequenceEntity, + com.google.cloud.clouddms.v1.SequenceEntity.Builder, + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder> + sequenceBuilder_; + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return Whether the sequence field is set. + */ + @java.lang.Override + public boolean hasSequence() { + return entityBodyCase_ == 105; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return The sequence. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntity getSequence() { + if (sequenceBuilder_ == null) { + if (entityBodyCase_ == 105) { + return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; } + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); } else { - if (entityBodyCase_ == 103) { + if (entityBodyCase_ == 105) { + return sequenceBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder setSequence(com.google.cloud.clouddms.v1.SequenceEntity value) { + if (sequenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + sequenceBuilder_.setMessage(value); + } + entityBodyCase_ = 105; + return this; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder setSequence( + com.google.cloud.clouddms.v1.SequenceEntity.Builder builderForValue) { + if (sequenceBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + sequenceBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 105; + return this; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder mergeSequence(com.google.cloud.clouddms.v1.SequenceEntity value) { + if (sequenceBuilder_ == null) { + if (entityBodyCase_ == 105 + && entityBody_ != com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.SequenceEntity.newBuilder( + (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 105) { + sequenceBuilder_.mergeFrom(value); + } else { + sequenceBuilder_.setMessage(value); + } + } + entityBodyCase_ = 105; + return this; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder clearSequence() { + if (sequenceBuilder_ == null) { + if (entityBodyCase_ == 105) { entityBodyCase_ = 0; entityBody_ = null; + onChanged(); } - tableBuilder_.clear(); + } else { + if (entityBodyCase_ == 105) { + entityBodyCase_ = 0; + entityBody_ = null; + } + sequenceBuilder_.clear(); } return this; } @@ -2962,169 +4870,171 @@ public Builder clearTable() { * * *
-     * Table.
+     * Sequence.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; */ - public com.google.cloud.clouddms.v1.TableEntity.Builder getTableBuilder() { - return getTableFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.SequenceEntity.Builder getSequenceBuilder() { + return getSequenceFieldBuilder().getBuilder(); } /** * * *
-     * Table.
+     * Sequence.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; */ @java.lang.Override - public com.google.cloud.clouddms.v1.TableEntityOrBuilder getTableOrBuilder() { - if ((entityBodyCase_ == 103) && (tableBuilder_ != null)) { - return tableBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.SequenceEntityOrBuilder getSequenceOrBuilder() { + if ((entityBodyCase_ == 105) && (sequenceBuilder_ != null)) { + return sequenceBuilder_.getMessageOrBuilder(); } else { - if (entityBodyCase_ == 103) { - return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; + if (entityBodyCase_ == 105) { + return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; } - return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); } } /** * * *
-     * Table.
+     * Sequence.
      * 
* - * .google.cloud.clouddms.v1.TableEntity table = 103; + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.TableEntity, - com.google.cloud.clouddms.v1.TableEntity.Builder, - com.google.cloud.clouddms.v1.TableEntityOrBuilder> - getTableFieldBuilder() { - if (tableBuilder_ == null) { - if (!(entityBodyCase_ == 103)) { - entityBody_ = com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + com.google.cloud.clouddms.v1.SequenceEntity, + com.google.cloud.clouddms.v1.SequenceEntity.Builder, + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder> + getSequenceFieldBuilder() { + if (sequenceBuilder_ == null) { + if (!(entityBodyCase_ == 105)) { + entityBody_ = com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); } - tableBuilder_ = + sequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.TableEntity, - com.google.cloud.clouddms.v1.TableEntity.Builder, - com.google.cloud.clouddms.v1.TableEntityOrBuilder>( - (com.google.cloud.clouddms.v1.TableEntity) entityBody_, + com.google.cloud.clouddms.v1.SequenceEntity, + com.google.cloud.clouddms.v1.SequenceEntity.Builder, + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder>( + (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_, getParentForChildren(), isClean()); entityBody_ = null; } - entityBodyCase_ = 103; + entityBodyCase_ = 105; onChanged(); - return tableBuilder_; + return sequenceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ViewEntity, - com.google.cloud.clouddms.v1.ViewEntity.Builder, - com.google.cloud.clouddms.v1.ViewEntityOrBuilder> - viewBuilder_; + com.google.cloud.clouddms.v1.StoredProcedureEntity, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder> + storedProcedureBuilder_; /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; * - * @return Whether the view field is set. + * @return Whether the storedProcedure field is set. */ @java.lang.Override - public boolean hasView() { - return entityBodyCase_ == 104; + public boolean hasStoredProcedure() { + return entityBodyCase_ == 106; } /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; * - * @return The view. + * @return The storedProcedure. */ @java.lang.Override - public com.google.cloud.clouddms.v1.ViewEntity getView() { - if (viewBuilder_ == null) { - if (entityBodyCase_ == 104) { - return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + public com.google.cloud.clouddms.v1.StoredProcedureEntity getStoredProcedure() { + if (storedProcedureBuilder_ == null) { + if (entityBodyCase_ == 106) { + return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; } - return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); } else { - if (entityBodyCase_ == 104) { - return viewBuilder_.getMessage(); + if (entityBodyCase_ == 106) { + return storedProcedureBuilder_.getMessage(); } - return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); } } /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; */ - public Builder setView(com.google.cloud.clouddms.v1.ViewEntity value) { - if (viewBuilder_ == null) { + public Builder setStoredProcedure(com.google.cloud.clouddms.v1.StoredProcedureEntity value) { + if (storedProcedureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityBody_ = value; onChanged(); } else { - viewBuilder_.setMessage(value); + storedProcedureBuilder_.setMessage(value); } - entityBodyCase_ = 104; + entityBodyCase_ = 106; return this; } /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; */ - public Builder setView(com.google.cloud.clouddms.v1.ViewEntity.Builder builderForValue) { - if (viewBuilder_ == null) { + public Builder setStoredProcedure( + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder builderForValue) { + if (storedProcedureBuilder_ == null) { entityBody_ = builderForValue.build(); onChanged(); } else { - viewBuilder_.setMessage(builderForValue.build()); + storedProcedureBuilder_.setMessage(builderForValue.build()); } - entityBodyCase_ = 104; + entityBodyCase_ = 106; return this; } /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; */ - public Builder mergeView(com.google.cloud.clouddms.v1.ViewEntity value) { - if (viewBuilder_ == null) { - if (entityBodyCase_ == 104 - && entityBody_ != com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance()) { + public Builder mergeStoredProcedure(com.google.cloud.clouddms.v1.StoredProcedureEntity value) { + if (storedProcedureBuilder_ == null) { + if (entityBodyCase_ == 106 + && entityBody_ + != com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance()) { entityBody_ = - com.google.cloud.clouddms.v1.ViewEntity.newBuilder( - (com.google.cloud.clouddms.v1.ViewEntity) entityBody_) + com.google.cloud.clouddms.v1.StoredProcedureEntity.newBuilder( + (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_) .mergeFrom(value) .buildPartial(); } else { @@ -3132,37 +5042,37 @@ public Builder mergeView(com.google.cloud.clouddms.v1.ViewEntity value) { } onChanged(); } else { - if (entityBodyCase_ == 104) { - viewBuilder_.mergeFrom(value); + if (entityBodyCase_ == 106) { + storedProcedureBuilder_.mergeFrom(value); } else { - viewBuilder_.setMessage(value); + storedProcedureBuilder_.setMessage(value); } } - entityBodyCase_ = 104; + entityBodyCase_ = 106; return this; } /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; */ - public Builder clearView() { - if (viewBuilder_ == null) { - if (entityBodyCase_ == 104) { + public Builder clearStoredProcedure() { + if (storedProcedureBuilder_ == null) { + if (entityBodyCase_ == 106) { entityBodyCase_ = 0; entityBody_ = null; onChanged(); } } else { - if (entityBodyCase_ == 104) { + if (entityBodyCase_ == 106) { entityBodyCase_ = 0; entityBody_ = null; } - viewBuilder_.clear(); + storedProcedureBuilder_.clear(); } return this; } @@ -3170,170 +5080,171 @@ public Builder clearView() { * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; */ - public com.google.cloud.clouddms.v1.ViewEntity.Builder getViewBuilder() { - return getViewFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder getStoredProcedureBuilder() { + return getStoredProcedureFieldBuilder().getBuilder(); } /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; */ @java.lang.Override - public com.google.cloud.clouddms.v1.ViewEntityOrBuilder getViewOrBuilder() { - if ((entityBodyCase_ == 104) && (viewBuilder_ != null)) { - return viewBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder + getStoredProcedureOrBuilder() { + if ((entityBodyCase_ == 106) && (storedProcedureBuilder_ != null)) { + return storedProcedureBuilder_.getMessageOrBuilder(); } else { - if (entityBodyCase_ == 104) { - return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + if (entityBodyCase_ == 106) { + return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; } - return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); } } /** * * *
-     * View.
+     * Stored procedure.
      * 
* - * .google.cloud.clouddms.v1.ViewEntity view = 104; + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ViewEntity, - com.google.cloud.clouddms.v1.ViewEntity.Builder, - com.google.cloud.clouddms.v1.ViewEntityOrBuilder> - getViewFieldBuilder() { - if (viewBuilder_ == null) { - if (!(entityBodyCase_ == 104)) { - entityBody_ = com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + com.google.cloud.clouddms.v1.StoredProcedureEntity, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder> + getStoredProcedureFieldBuilder() { + if (storedProcedureBuilder_ == null) { + if (!(entityBodyCase_ == 106)) { + entityBody_ = com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); } - viewBuilder_ = + storedProcedureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ViewEntity, - com.google.cloud.clouddms.v1.ViewEntity.Builder, - com.google.cloud.clouddms.v1.ViewEntityOrBuilder>( - (com.google.cloud.clouddms.v1.ViewEntity) entityBody_, + com.google.cloud.clouddms.v1.StoredProcedureEntity, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder>( + (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_, getParentForChildren(), isClean()); entityBody_ = null; } - entityBodyCase_ = 104; + entityBodyCase_ = 106; onChanged(); - return viewBuilder_; + return storedProcedureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SequenceEntity, - com.google.cloud.clouddms.v1.SequenceEntity.Builder, - com.google.cloud.clouddms.v1.SequenceEntityOrBuilder> - sequenceBuilder_; + com.google.cloud.clouddms.v1.FunctionEntity, + com.google.cloud.clouddms.v1.FunctionEntity.Builder, + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder> + databaseFunctionBuilder_; /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; * - * @return Whether the sequence field is set. + * @return Whether the databaseFunction field is set. */ @java.lang.Override - public boolean hasSequence() { - return entityBodyCase_ == 105; + public boolean hasDatabaseFunction() { + return entityBodyCase_ == 107; } /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; * - * @return The sequence. + * @return The databaseFunction. */ @java.lang.Override - public com.google.cloud.clouddms.v1.SequenceEntity getSequence() { - if (sequenceBuilder_ == null) { - if (entityBodyCase_ == 105) { - return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; + public com.google.cloud.clouddms.v1.FunctionEntity getDatabaseFunction() { + if (databaseFunctionBuilder_ == null) { + if (entityBodyCase_ == 107) { + return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; } - return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); } else { - if (entityBodyCase_ == 105) { - return sequenceBuilder_.getMessage(); + if (entityBodyCase_ == 107) { + return databaseFunctionBuilder_.getMessage(); } - return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); } } /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; */ - public Builder setSequence(com.google.cloud.clouddms.v1.SequenceEntity value) { - if (sequenceBuilder_ == null) { + public Builder setDatabaseFunction(com.google.cloud.clouddms.v1.FunctionEntity value) { + if (databaseFunctionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityBody_ = value; onChanged(); } else { - sequenceBuilder_.setMessage(value); + databaseFunctionBuilder_.setMessage(value); } - entityBodyCase_ = 105; + entityBodyCase_ = 107; return this; } /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; */ - public Builder setSequence( - com.google.cloud.clouddms.v1.SequenceEntity.Builder builderForValue) { - if (sequenceBuilder_ == null) { + public Builder setDatabaseFunction( + com.google.cloud.clouddms.v1.FunctionEntity.Builder builderForValue) { + if (databaseFunctionBuilder_ == null) { entityBody_ = builderForValue.build(); onChanged(); } else { - sequenceBuilder_.setMessage(builderForValue.build()); + databaseFunctionBuilder_.setMessage(builderForValue.build()); } - entityBodyCase_ = 105; + entityBodyCase_ = 107; return this; } /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; */ - public Builder mergeSequence(com.google.cloud.clouddms.v1.SequenceEntity value) { - if (sequenceBuilder_ == null) { - if (entityBodyCase_ == 105 - && entityBody_ != com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance()) { + public Builder mergeDatabaseFunction(com.google.cloud.clouddms.v1.FunctionEntity value) { + if (databaseFunctionBuilder_ == null) { + if (entityBodyCase_ == 107 + && entityBody_ != com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance()) { entityBody_ = - com.google.cloud.clouddms.v1.SequenceEntity.newBuilder( - (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_) + com.google.cloud.clouddms.v1.FunctionEntity.newBuilder( + (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_) .mergeFrom(value) .buildPartial(); } else { @@ -3341,37 +5252,37 @@ public Builder mergeSequence(com.google.cloud.clouddms.v1.SequenceEntity value) } onChanged(); } else { - if (entityBodyCase_ == 105) { - sequenceBuilder_.mergeFrom(value); + if (entityBodyCase_ == 107) { + databaseFunctionBuilder_.mergeFrom(value); } else { - sequenceBuilder_.setMessage(value); + databaseFunctionBuilder_.setMessage(value); } } - entityBodyCase_ = 105; + entityBodyCase_ = 107; return this; } /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; */ - public Builder clearSequence() { - if (sequenceBuilder_ == null) { - if (entityBodyCase_ == 105) { + public Builder clearDatabaseFunction() { + if (databaseFunctionBuilder_ == null) { + if (entityBodyCase_ == 107) { entityBodyCase_ = 0; entityBody_ = null; onChanged(); } } else { - if (entityBodyCase_ == 105) { + if (entityBodyCase_ == 107) { entityBodyCase_ = 0; entityBody_ = null; } - sequenceBuilder_.clear(); + databaseFunctionBuilder_.clear(); } return this; } @@ -3379,171 +5290,169 @@ public Builder clearSequence() { * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; */ - public com.google.cloud.clouddms.v1.SequenceEntity.Builder getSequenceBuilder() { - return getSequenceFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.FunctionEntity.Builder getDatabaseFunctionBuilder() { + return getDatabaseFunctionFieldBuilder().getBuilder(); } /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; */ @java.lang.Override - public com.google.cloud.clouddms.v1.SequenceEntityOrBuilder getSequenceOrBuilder() { - if ((entityBodyCase_ == 105) && (sequenceBuilder_ != null)) { - return sequenceBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.FunctionEntityOrBuilder getDatabaseFunctionOrBuilder() { + if ((entityBodyCase_ == 107) && (databaseFunctionBuilder_ != null)) { + return databaseFunctionBuilder_.getMessageOrBuilder(); } else { - if (entityBodyCase_ == 105) { - return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; + if (entityBodyCase_ == 107) { + return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; } - return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); } } /** * * *
-     * Sequence.
+     * Function.
      * 
* - * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SequenceEntity, - com.google.cloud.clouddms.v1.SequenceEntity.Builder, - com.google.cloud.clouddms.v1.SequenceEntityOrBuilder> - getSequenceFieldBuilder() { - if (sequenceBuilder_ == null) { - if (!(entityBodyCase_ == 105)) { - entityBody_ = com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + com.google.cloud.clouddms.v1.FunctionEntity, + com.google.cloud.clouddms.v1.FunctionEntity.Builder, + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder> + getDatabaseFunctionFieldBuilder() { + if (databaseFunctionBuilder_ == null) { + if (!(entityBodyCase_ == 107)) { + entityBody_ = com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); } - sequenceBuilder_ = + databaseFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SequenceEntity, - com.google.cloud.clouddms.v1.SequenceEntity.Builder, - com.google.cloud.clouddms.v1.SequenceEntityOrBuilder>( - (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_, + com.google.cloud.clouddms.v1.FunctionEntity, + com.google.cloud.clouddms.v1.FunctionEntity.Builder, + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder>( + (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_, getParentForChildren(), isClean()); entityBody_ = null; } - entityBodyCase_ = 105; + entityBodyCase_ = 107; onChanged(); - return sequenceBuilder_; + return databaseFunctionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StoredProcedureEntity, - com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, - com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder> - storedProcedureBuilder_; + com.google.cloud.clouddms.v1.SynonymEntity, + com.google.cloud.clouddms.v1.SynonymEntity.Builder, + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder> + synonymBuilder_; /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; * - * @return Whether the storedProcedure field is set. + * @return Whether the synonym field is set. */ @java.lang.Override - public boolean hasStoredProcedure() { - return entityBodyCase_ == 106; + public boolean hasSynonym() { + return entityBodyCase_ == 108; } /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; * - * @return The storedProcedure. + * @return The synonym. */ @java.lang.Override - public com.google.cloud.clouddms.v1.StoredProcedureEntity getStoredProcedure() { - if (storedProcedureBuilder_ == null) { - if (entityBodyCase_ == 106) { - return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; + public com.google.cloud.clouddms.v1.SynonymEntity getSynonym() { + if (synonymBuilder_ == null) { + if (entityBodyCase_ == 108) { + return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; } - return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); } else { - if (entityBodyCase_ == 106) { - return storedProcedureBuilder_.getMessage(); + if (entityBodyCase_ == 108) { + return synonymBuilder_.getMessage(); } - return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); } } /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; */ - public Builder setStoredProcedure(com.google.cloud.clouddms.v1.StoredProcedureEntity value) { - if (storedProcedureBuilder_ == null) { + public Builder setSynonym(com.google.cloud.clouddms.v1.SynonymEntity value) { + if (synonymBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityBody_ = value; onChanged(); } else { - storedProcedureBuilder_.setMessage(value); + synonymBuilder_.setMessage(value); } - entityBodyCase_ = 106; + entityBodyCase_ = 108; return this; } /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; */ - public Builder setStoredProcedure( - com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder builderForValue) { - if (storedProcedureBuilder_ == null) { + public Builder setSynonym(com.google.cloud.clouddms.v1.SynonymEntity.Builder builderForValue) { + if (synonymBuilder_ == null) { entityBody_ = builderForValue.build(); onChanged(); } else { - storedProcedureBuilder_.setMessage(builderForValue.build()); + synonymBuilder_.setMessage(builderForValue.build()); } - entityBodyCase_ = 106; + entityBodyCase_ = 108; return this; } /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; */ - public Builder mergeStoredProcedure(com.google.cloud.clouddms.v1.StoredProcedureEntity value) { - if (storedProcedureBuilder_ == null) { - if (entityBodyCase_ == 106 - && entityBody_ - != com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance()) { + public Builder mergeSynonym(com.google.cloud.clouddms.v1.SynonymEntity value) { + if (synonymBuilder_ == null) { + if (entityBodyCase_ == 108 + && entityBody_ != com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance()) { entityBody_ = - com.google.cloud.clouddms.v1.StoredProcedureEntity.newBuilder( - (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_) + com.google.cloud.clouddms.v1.SynonymEntity.newBuilder( + (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_) .mergeFrom(value) .buildPartial(); } else { @@ -3551,37 +5460,37 @@ public Builder mergeStoredProcedure(com.google.cloud.clouddms.v1.StoredProcedure } onChanged(); } else { - if (entityBodyCase_ == 106) { - storedProcedureBuilder_.mergeFrom(value); + if (entityBodyCase_ == 108) { + synonymBuilder_.mergeFrom(value); } else { - storedProcedureBuilder_.setMessage(value); + synonymBuilder_.setMessage(value); } } - entityBodyCase_ = 106; + entityBodyCase_ = 108; return this; } /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; */ - public Builder clearStoredProcedure() { - if (storedProcedureBuilder_ == null) { - if (entityBodyCase_ == 106) { + public Builder clearSynonym() { + if (synonymBuilder_ == null) { + if (entityBodyCase_ == 108) { entityBodyCase_ = 0; entityBody_ = null; onChanged(); } } else { - if (entityBodyCase_ == 106) { + if (entityBodyCase_ == 108) { entityBodyCase_ = 0; entityBody_ = null; } - storedProcedureBuilder_.clear(); + synonymBuilder_.clear(); } return this; } @@ -3589,171 +5498,170 @@ public Builder clearStoredProcedure() { * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; */ - public com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder getStoredProcedureBuilder() { - return getStoredProcedureFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.SynonymEntity.Builder getSynonymBuilder() { + return getSynonymFieldBuilder().getBuilder(); } /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; */ @java.lang.Override - public com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder - getStoredProcedureOrBuilder() { - if ((entityBodyCase_ == 106) && (storedProcedureBuilder_ != null)) { - return storedProcedureBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.SynonymEntityOrBuilder getSynonymOrBuilder() { + if ((entityBodyCase_ == 108) && (synonymBuilder_ != null)) { + return synonymBuilder_.getMessageOrBuilder(); } else { - if (entityBodyCase_ == 106) { - return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; + if (entityBodyCase_ == 108) { + return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; } - return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); } } /** * * *
-     * Stored procedure.
+     * Synonym.
      * 
* - * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StoredProcedureEntity, - com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, - com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder> - getStoredProcedureFieldBuilder() { - if (storedProcedureBuilder_ == null) { - if (!(entityBodyCase_ == 106)) { - entityBody_ = com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + com.google.cloud.clouddms.v1.SynonymEntity, + com.google.cloud.clouddms.v1.SynonymEntity.Builder, + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder> + getSynonymFieldBuilder() { + if (synonymBuilder_ == null) { + if (!(entityBodyCase_ == 108)) { + entityBody_ = com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); } - storedProcedureBuilder_ = + synonymBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StoredProcedureEntity, - com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, - com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder>( - (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_, + com.google.cloud.clouddms.v1.SynonymEntity, + com.google.cloud.clouddms.v1.SynonymEntity.Builder, + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder>( + (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_, getParentForChildren(), isClean()); entityBody_ = null; } - entityBodyCase_ = 106; + entityBodyCase_ = 108; onChanged(); - return storedProcedureBuilder_; + return synonymBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.FunctionEntity, - com.google.cloud.clouddms.v1.FunctionEntity.Builder, - com.google.cloud.clouddms.v1.FunctionEntityOrBuilder> - databaseFunctionBuilder_; + com.google.cloud.clouddms.v1.PackageEntity, + com.google.cloud.clouddms.v1.PackageEntity.Builder, + com.google.cloud.clouddms.v1.PackageEntityOrBuilder> + databasePackageBuilder_; /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; * - * @return Whether the databaseFunction field is set. + * @return Whether the databasePackage field is set. */ @java.lang.Override - public boolean hasDatabaseFunction() { - return entityBodyCase_ == 107; + public boolean hasDatabasePackage() { + return entityBodyCase_ == 109; } /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; * - * @return The databaseFunction. + * @return The databasePackage. */ @java.lang.Override - public com.google.cloud.clouddms.v1.FunctionEntity getDatabaseFunction() { - if (databaseFunctionBuilder_ == null) { - if (entityBodyCase_ == 107) { - return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; + public com.google.cloud.clouddms.v1.PackageEntity getDatabasePackage() { + if (databasePackageBuilder_ == null) { + if (entityBodyCase_ == 109) { + return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; } - return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); } else { - if (entityBodyCase_ == 107) { - return databaseFunctionBuilder_.getMessage(); + if (entityBodyCase_ == 109) { + return databasePackageBuilder_.getMessage(); } - return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); } } /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; */ - public Builder setDatabaseFunction(com.google.cloud.clouddms.v1.FunctionEntity value) { - if (databaseFunctionBuilder_ == null) { + public Builder setDatabasePackage(com.google.cloud.clouddms.v1.PackageEntity value) { + if (databasePackageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityBody_ = value; onChanged(); } else { - databaseFunctionBuilder_.setMessage(value); + databasePackageBuilder_.setMessage(value); } - entityBodyCase_ = 107; + entityBodyCase_ = 109; return this; } /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; */ - public Builder setDatabaseFunction( - com.google.cloud.clouddms.v1.FunctionEntity.Builder builderForValue) { - if (databaseFunctionBuilder_ == null) { + public Builder setDatabasePackage( + com.google.cloud.clouddms.v1.PackageEntity.Builder builderForValue) { + if (databasePackageBuilder_ == null) { entityBody_ = builderForValue.build(); onChanged(); } else { - databaseFunctionBuilder_.setMessage(builderForValue.build()); + databasePackageBuilder_.setMessage(builderForValue.build()); } - entityBodyCase_ = 107; + entityBodyCase_ = 109; return this; } /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; */ - public Builder mergeDatabaseFunction(com.google.cloud.clouddms.v1.FunctionEntity value) { - if (databaseFunctionBuilder_ == null) { - if (entityBodyCase_ == 107 - && entityBody_ != com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance()) { + public Builder mergeDatabasePackage(com.google.cloud.clouddms.v1.PackageEntity value) { + if (databasePackageBuilder_ == null) { + if (entityBodyCase_ == 109 + && entityBody_ != com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance()) { entityBody_ = - com.google.cloud.clouddms.v1.FunctionEntity.newBuilder( - (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_) + com.google.cloud.clouddms.v1.PackageEntity.newBuilder( + (com.google.cloud.clouddms.v1.PackageEntity) entityBody_) .mergeFrom(value) .buildPartial(); } else { @@ -3761,37 +5669,37 @@ public Builder mergeDatabaseFunction(com.google.cloud.clouddms.v1.FunctionEntity } onChanged(); } else { - if (entityBodyCase_ == 107) { - databaseFunctionBuilder_.mergeFrom(value); + if (entityBodyCase_ == 109) { + databasePackageBuilder_.mergeFrom(value); } else { - databaseFunctionBuilder_.setMessage(value); + databasePackageBuilder_.setMessage(value); } } - entityBodyCase_ = 107; + entityBodyCase_ = 109; return this; } /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; */ - public Builder clearDatabaseFunction() { - if (databaseFunctionBuilder_ == null) { - if (entityBodyCase_ == 107) { + public Builder clearDatabasePackage() { + if (databasePackageBuilder_ == null) { + if (entityBodyCase_ == 109) { entityBodyCase_ = 0; entityBody_ = null; onChanged(); } } else { - if (entityBodyCase_ == 107) { + if (entityBodyCase_ == 109) { entityBodyCase_ = 0; entityBody_ = null; } - databaseFunctionBuilder_.clear(); + databasePackageBuilder_.clear(); } return this; } @@ -3799,169 +5707,169 @@ public Builder clearDatabaseFunction() { * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; */ - public com.google.cloud.clouddms.v1.FunctionEntity.Builder getDatabaseFunctionBuilder() { - return getDatabaseFunctionFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.PackageEntity.Builder getDatabasePackageBuilder() { + return getDatabasePackageFieldBuilder().getBuilder(); } /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; */ @java.lang.Override - public com.google.cloud.clouddms.v1.FunctionEntityOrBuilder getDatabaseFunctionOrBuilder() { - if ((entityBodyCase_ == 107) && (databaseFunctionBuilder_ != null)) { - return databaseFunctionBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.PackageEntityOrBuilder getDatabasePackageOrBuilder() { + if ((entityBodyCase_ == 109) && (databasePackageBuilder_ != null)) { + return databasePackageBuilder_.getMessageOrBuilder(); } else { - if (entityBodyCase_ == 107) { - return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; + if (entityBodyCase_ == 109) { + return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; } - return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); } } /** * * *
-     * Function.
+     * Package.
      * 
* - * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.FunctionEntity, - com.google.cloud.clouddms.v1.FunctionEntity.Builder, - com.google.cloud.clouddms.v1.FunctionEntityOrBuilder> - getDatabaseFunctionFieldBuilder() { - if (databaseFunctionBuilder_ == null) { - if (!(entityBodyCase_ == 107)) { - entityBody_ = com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + com.google.cloud.clouddms.v1.PackageEntity, + com.google.cloud.clouddms.v1.PackageEntity.Builder, + com.google.cloud.clouddms.v1.PackageEntityOrBuilder> + getDatabasePackageFieldBuilder() { + if (databasePackageBuilder_ == null) { + if (!(entityBodyCase_ == 109)) { + entityBody_ = com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); } - databaseFunctionBuilder_ = + databasePackageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.FunctionEntity, - com.google.cloud.clouddms.v1.FunctionEntity.Builder, - com.google.cloud.clouddms.v1.FunctionEntityOrBuilder>( - (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_, + com.google.cloud.clouddms.v1.PackageEntity, + com.google.cloud.clouddms.v1.PackageEntity.Builder, + com.google.cloud.clouddms.v1.PackageEntityOrBuilder>( + (com.google.cloud.clouddms.v1.PackageEntity) entityBody_, getParentForChildren(), isClean()); entityBody_ = null; } - entityBodyCase_ = 107; + entityBodyCase_ = 109; onChanged(); - return databaseFunctionBuilder_; + return databasePackageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SynonymEntity, - com.google.cloud.clouddms.v1.SynonymEntity.Builder, - com.google.cloud.clouddms.v1.SynonymEntityOrBuilder> - synonymBuilder_; + com.google.cloud.clouddms.v1.UDTEntity, + com.google.cloud.clouddms.v1.UDTEntity.Builder, + com.google.cloud.clouddms.v1.UDTEntityOrBuilder> + udtBuilder_; /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; * - * @return Whether the synonym field is set. + * @return Whether the udt field is set. */ @java.lang.Override - public boolean hasSynonym() { - return entityBodyCase_ == 108; + public boolean hasUdt() { + return entityBodyCase_ == 110; } /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; * - * @return The synonym. + * @return The udt. */ @java.lang.Override - public com.google.cloud.clouddms.v1.SynonymEntity getSynonym() { - if (synonymBuilder_ == null) { - if (entityBodyCase_ == 108) { - return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; + public com.google.cloud.clouddms.v1.UDTEntity getUdt() { + if (udtBuilder_ == null) { + if (entityBodyCase_ == 110) { + return (com.google.cloud.clouddms.v1.UDTEntity) entityBody_; } - return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance(); } else { - if (entityBodyCase_ == 108) { - return synonymBuilder_.getMessage(); + if (entityBodyCase_ == 110) { + return udtBuilder_.getMessage(); } - return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance(); } } /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; */ - public Builder setSynonym(com.google.cloud.clouddms.v1.SynonymEntity value) { - if (synonymBuilder_ == null) { + public Builder setUdt(com.google.cloud.clouddms.v1.UDTEntity value) { + if (udtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityBody_ = value; onChanged(); } else { - synonymBuilder_.setMessage(value); + udtBuilder_.setMessage(value); } - entityBodyCase_ = 108; + entityBodyCase_ = 110; return this; } /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; */ - public Builder setSynonym(com.google.cloud.clouddms.v1.SynonymEntity.Builder builderForValue) { - if (synonymBuilder_ == null) { + public Builder setUdt(com.google.cloud.clouddms.v1.UDTEntity.Builder builderForValue) { + if (udtBuilder_ == null) { entityBody_ = builderForValue.build(); onChanged(); } else { - synonymBuilder_.setMessage(builderForValue.build()); + udtBuilder_.setMessage(builderForValue.build()); } - entityBodyCase_ = 108; + entityBodyCase_ = 110; return this; } /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; */ - public Builder mergeSynonym(com.google.cloud.clouddms.v1.SynonymEntity value) { - if (synonymBuilder_ == null) { - if (entityBodyCase_ == 108 - && entityBody_ != com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance()) { + public Builder mergeUdt(com.google.cloud.clouddms.v1.UDTEntity value) { + if (udtBuilder_ == null) { + if (entityBodyCase_ == 110 + && entityBody_ != com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance()) { entityBody_ = - com.google.cloud.clouddms.v1.SynonymEntity.newBuilder( - (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_) + com.google.cloud.clouddms.v1.UDTEntity.newBuilder( + (com.google.cloud.clouddms.v1.UDTEntity) entityBody_) .mergeFrom(value) .buildPartial(); } else { @@ -3969,37 +5877,37 @@ public Builder mergeSynonym(com.google.cloud.clouddms.v1.SynonymEntity value) { } onChanged(); } else { - if (entityBodyCase_ == 108) { - synonymBuilder_.mergeFrom(value); + if (entityBodyCase_ == 110) { + udtBuilder_.mergeFrom(value); } else { - synonymBuilder_.setMessage(value); + udtBuilder_.setMessage(value); } } - entityBodyCase_ = 108; + entityBodyCase_ = 110; return this; } /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; */ - public Builder clearSynonym() { - if (synonymBuilder_ == null) { - if (entityBodyCase_ == 108) { + public Builder clearUdt() { + if (udtBuilder_ == null) { + if (entityBodyCase_ == 110) { entityBodyCase_ = 0; entityBody_ = null; onChanged(); } } else { - if (entityBodyCase_ == 108) { + if (entityBodyCase_ == 110) { entityBodyCase_ = 0; entityBody_ = null; } - synonymBuilder_.clear(); + udtBuilder_.clear(); } return this; } @@ -4007,170 +5915,172 @@ public Builder clearSynonym() { * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; */ - public com.google.cloud.clouddms.v1.SynonymEntity.Builder getSynonymBuilder() { - return getSynonymFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.UDTEntity.Builder getUdtBuilder() { + return getUdtFieldBuilder().getBuilder(); } /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; */ @java.lang.Override - public com.google.cloud.clouddms.v1.SynonymEntityOrBuilder getSynonymOrBuilder() { - if ((entityBodyCase_ == 108) && (synonymBuilder_ != null)) { - return synonymBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.UDTEntityOrBuilder getUdtOrBuilder() { + if ((entityBodyCase_ == 110) && (udtBuilder_ != null)) { + return udtBuilder_.getMessageOrBuilder(); } else { - if (entityBodyCase_ == 108) { - return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; + if (entityBodyCase_ == 110) { + return (com.google.cloud.clouddms.v1.UDTEntity) entityBody_; } - return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance(); } } /** * * *
-     * Synonym.
+     * UDT.
      * 
* - * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * .google.cloud.clouddms.v1.UDTEntity udt = 110; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SynonymEntity, - com.google.cloud.clouddms.v1.SynonymEntity.Builder, - com.google.cloud.clouddms.v1.SynonymEntityOrBuilder> - getSynonymFieldBuilder() { - if (synonymBuilder_ == null) { - if (!(entityBodyCase_ == 108)) { - entityBody_ = com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + com.google.cloud.clouddms.v1.UDTEntity, + com.google.cloud.clouddms.v1.UDTEntity.Builder, + com.google.cloud.clouddms.v1.UDTEntityOrBuilder> + getUdtFieldBuilder() { + if (udtBuilder_ == null) { + if (!(entityBodyCase_ == 110)) { + entityBody_ = com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance(); } - synonymBuilder_ = + udtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SynonymEntity, - com.google.cloud.clouddms.v1.SynonymEntity.Builder, - com.google.cloud.clouddms.v1.SynonymEntityOrBuilder>( - (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_, + com.google.cloud.clouddms.v1.UDTEntity, + com.google.cloud.clouddms.v1.UDTEntity.Builder, + com.google.cloud.clouddms.v1.UDTEntityOrBuilder>( + (com.google.cloud.clouddms.v1.UDTEntity) entityBody_, getParentForChildren(), isClean()); entityBody_ = null; } - entityBodyCase_ = 108; + entityBodyCase_ = 110; onChanged(); - return synonymBuilder_; + return udtBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PackageEntity, - com.google.cloud.clouddms.v1.PackageEntity.Builder, - com.google.cloud.clouddms.v1.PackageEntityOrBuilder> - databasePackageBuilder_; + com.google.cloud.clouddms.v1.MaterializedViewEntity, + com.google.cloud.clouddms.v1.MaterializedViewEntity.Builder, + com.google.cloud.clouddms.v1.MaterializedViewEntityOrBuilder> + materializedViewBuilder_; /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; * - * @return Whether the databasePackage field is set. + * @return Whether the materializedView field is set. */ @java.lang.Override - public boolean hasDatabasePackage() { - return entityBodyCase_ == 109; + public boolean hasMaterializedView() { + return entityBodyCase_ == 111; } /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; * - * @return The databasePackage. + * @return The materializedView. */ @java.lang.Override - public com.google.cloud.clouddms.v1.PackageEntity getDatabasePackage() { - if (databasePackageBuilder_ == null) { - if (entityBodyCase_ == 109) { - return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; + public com.google.cloud.clouddms.v1.MaterializedViewEntity getMaterializedView() { + if (materializedViewBuilder_ == null) { + if (entityBodyCase_ == 111) { + return (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_; } - return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance(); } else { - if (entityBodyCase_ == 109) { - return databasePackageBuilder_.getMessage(); + if (entityBodyCase_ == 111) { + return materializedViewBuilder_.getMessage(); } - return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance(); } } /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; */ - public Builder setDatabasePackage(com.google.cloud.clouddms.v1.PackageEntity value) { - if (databasePackageBuilder_ == null) { + public Builder setMaterializedView(com.google.cloud.clouddms.v1.MaterializedViewEntity value) { + if (materializedViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityBody_ = value; onChanged(); } else { - databasePackageBuilder_.setMessage(value); + materializedViewBuilder_.setMessage(value); } - entityBodyCase_ = 109; + entityBodyCase_ = 111; return this; } /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; */ - public Builder setDatabasePackage( - com.google.cloud.clouddms.v1.PackageEntity.Builder builderForValue) { - if (databasePackageBuilder_ == null) { + public Builder setMaterializedView( + com.google.cloud.clouddms.v1.MaterializedViewEntity.Builder builderForValue) { + if (materializedViewBuilder_ == null) { entityBody_ = builderForValue.build(); onChanged(); } else { - databasePackageBuilder_.setMessage(builderForValue.build()); + materializedViewBuilder_.setMessage(builderForValue.build()); } - entityBodyCase_ = 109; + entityBodyCase_ = 111; return this; } /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; */ - public Builder mergeDatabasePackage(com.google.cloud.clouddms.v1.PackageEntity value) { - if (databasePackageBuilder_ == null) { - if (entityBodyCase_ == 109 - && entityBody_ != com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance()) { + public Builder mergeMaterializedView( + com.google.cloud.clouddms.v1.MaterializedViewEntity value) { + if (materializedViewBuilder_ == null) { + if (entityBodyCase_ == 111 + && entityBody_ + != com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance()) { entityBody_ = - com.google.cloud.clouddms.v1.PackageEntity.newBuilder( - (com.google.cloud.clouddms.v1.PackageEntity) entityBody_) + com.google.cloud.clouddms.v1.MaterializedViewEntity.newBuilder( + (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_) .mergeFrom(value) .buildPartial(); } else { @@ -4178,37 +6088,37 @@ public Builder mergeDatabasePackage(com.google.cloud.clouddms.v1.PackageEntity v } onChanged(); } else { - if (entityBodyCase_ == 109) { - databasePackageBuilder_.mergeFrom(value); + if (entityBodyCase_ == 111) { + materializedViewBuilder_.mergeFrom(value); } else { - databasePackageBuilder_.setMessage(value); + materializedViewBuilder_.setMessage(value); } } - entityBodyCase_ = 109; + entityBodyCase_ = 111; return this; } /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; */ - public Builder clearDatabasePackage() { - if (databasePackageBuilder_ == null) { - if (entityBodyCase_ == 109) { + public Builder clearMaterializedView() { + if (materializedViewBuilder_ == null) { + if (entityBodyCase_ == 111) { entityBodyCase_ = 0; entityBody_ = null; onChanged(); } } else { - if (entityBodyCase_ == 109) { + if (entityBodyCase_ == 111) { entityBodyCase_ = 0; entityBody_ = null; } - databasePackageBuilder_.clear(); + materializedViewBuilder_.clear(); } return this; } @@ -4216,65 +6126,67 @@ public Builder clearDatabasePackage() { * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; */ - public com.google.cloud.clouddms.v1.PackageEntity.Builder getDatabasePackageBuilder() { - return getDatabasePackageFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.MaterializedViewEntity.Builder + getMaterializedViewBuilder() { + return getMaterializedViewFieldBuilder().getBuilder(); } /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; */ @java.lang.Override - public com.google.cloud.clouddms.v1.PackageEntityOrBuilder getDatabasePackageOrBuilder() { - if ((entityBodyCase_ == 109) && (databasePackageBuilder_ != null)) { - return databasePackageBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.MaterializedViewEntityOrBuilder + getMaterializedViewOrBuilder() { + if ((entityBodyCase_ == 111) && (materializedViewBuilder_ != null)) { + return materializedViewBuilder_.getMessageOrBuilder(); } else { - if (entityBodyCase_ == 109) { - return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; + if (entityBodyCase_ == 111) { + return (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_; } - return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance(); } } /** * * *
-     * Package.
+     * Materialized view.
      * 
* - * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PackageEntity, - com.google.cloud.clouddms.v1.PackageEntity.Builder, - com.google.cloud.clouddms.v1.PackageEntityOrBuilder> - getDatabasePackageFieldBuilder() { - if (databasePackageBuilder_ == null) { - if (!(entityBodyCase_ == 109)) { - entityBody_ = com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + com.google.cloud.clouddms.v1.MaterializedViewEntity, + com.google.cloud.clouddms.v1.MaterializedViewEntity.Builder, + com.google.cloud.clouddms.v1.MaterializedViewEntityOrBuilder> + getMaterializedViewFieldBuilder() { + if (materializedViewBuilder_ == null) { + if (!(entityBodyCase_ == 111)) { + entityBody_ = com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance(); } - databasePackageBuilder_ = + materializedViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PackageEntity, - com.google.cloud.clouddms.v1.PackageEntity.Builder, - com.google.cloud.clouddms.v1.PackageEntityOrBuilder>( - (com.google.cloud.clouddms.v1.PackageEntity) entityBody_, + com.google.cloud.clouddms.v1.MaterializedViewEntity, + com.google.cloud.clouddms.v1.MaterializedViewEntity.Builder, + com.google.cloud.clouddms.v1.MaterializedViewEntityOrBuilder>( + (com.google.cloud.clouddms.v1.MaterializedViewEntity) entityBody_, getParentForChildren(), isClean()); entityBody_ = null; } - entityBodyCase_ = 109; + entityBodyCase_ = 111; onChanged(); - return databasePackageBuilder_; + return materializedViewBuilder_; } @java.lang.Override diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityOrBuilder.java index 48d71a91a0a3..06522e23a2fc 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityOrBuilder.java @@ -200,6 +200,155 @@ public interface DatabaseEntityOrBuilder */ com.google.cloud.clouddms.v1.EntityMappingOrBuilder getMappingsOrBuilder(int index); + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + java.util.List getEntityDdlList(); + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + com.google.cloud.clouddms.v1.EntityDdl getEntityDdl(int index); + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + int getEntityDdlCount(); + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + java.util.List + getEntityDdlOrBuilderList(); + /** + * + * + *
+   * Details about the entity DDL script. Multiple DDL scripts are provided for
+   * child entities such as a table entity will have one DDL for the table with
+   * additional DDLs for each index, constraint and such.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityDdl entity_ddl = 6; + */ + com.google.cloud.clouddms.v1.EntityDdlOrBuilder getEntityDdlOrBuilder(int index); + + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + java.util.List getIssuesList(); + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + com.google.cloud.clouddms.v1.EntityIssue getIssues(int index); + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + int getIssuesCount(); + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + java.util.List + getIssuesOrBuilderList(); + /** + * + * + *
+   * Details about the various issues found for the entity.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityIssue issues = 7; + */ + com.google.cloud.clouddms.v1.EntityIssueOrBuilder getIssuesOrBuilder(int index); + + /** + * + * + *
+   * Database.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + * + * @return Whether the database field is set. + */ + boolean hasDatabase(); + /** + * + * + *
+   * Database.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + * + * @return The database. + */ + com.google.cloud.clouddms.v1.DatabaseInstanceEntity getDatabase(); + /** + * + * + *
+   * Database.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseInstanceEntity database = 101; + */ + com.google.cloud.clouddms.v1.DatabaseInstanceEntityOrBuilder getDatabaseOrBuilder(); + /** * * @@ -480,5 +629,75 @@ public interface DatabaseEntityOrBuilder */ com.google.cloud.clouddms.v1.PackageEntityOrBuilder getDatabasePackageOrBuilder(); + /** + * + * + *
+   * UDT.
+   * 
+ * + * .google.cloud.clouddms.v1.UDTEntity udt = 110; + * + * @return Whether the udt field is set. + */ + boolean hasUdt(); + /** + * + * + *
+   * UDT.
+   * 
+ * + * .google.cloud.clouddms.v1.UDTEntity udt = 110; + * + * @return The udt. + */ + com.google.cloud.clouddms.v1.UDTEntity getUdt(); + /** + * + * + *
+   * UDT.
+   * 
+ * + * .google.cloud.clouddms.v1.UDTEntity udt = 110; + */ + com.google.cloud.clouddms.v1.UDTEntityOrBuilder getUdtOrBuilder(); + + /** + * + * + *
+   * Materialized view.
+   * 
+ * + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; + * + * @return Whether the materializedView field is set. + */ + boolean hasMaterializedView(); + /** + * + * + *
+   * Materialized view.
+   * 
+ * + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; + * + * @return The materializedView. + */ + com.google.cloud.clouddms.v1.MaterializedViewEntity getMaterializedView(); + /** + * + * + *
+   * Materialized view.
+   * 
+ * + * .google.cloud.clouddms.v1.MaterializedViewEntity materialized_view = 111; + */ + com.google.cloud.clouddms.v1.MaterializedViewEntityOrBuilder getMaterializedViewOrBuilder(); + com.google.cloud.clouddms.v1.DatabaseEntity.EntityBodyCase getEntityBodyCase(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityType.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityType.java index 584b729c0d34..033501c02eb7 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityType.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityType.java @@ -440,7 +440,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final DatabaseEntityType[] VALUES = values(); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityView.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityView.java new file mode 100644 index 000000000000..bfc014e3be0a --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityView.java @@ -0,0 +1,208 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * AIP-157 Partial Response view for Database Entity.
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.DatabaseEntityView} + */ +public enum DatabaseEntityView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified view. Defaults to basic view.
+   * 
+ * + * DATABASE_ENTITY_VIEW_UNSPECIFIED = 0; + */ + DATABASE_ENTITY_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * Default view. Does not return DDLs or Issues.
+   * 
+ * + * DATABASE_ENTITY_VIEW_BASIC = 1; + */ + DATABASE_ENTITY_VIEW_BASIC(1), + /** + * + * + *
+   * Return full entity details including mappings, ddl and issues.
+   * 
+ * + * DATABASE_ENTITY_VIEW_FULL = 2; + */ + DATABASE_ENTITY_VIEW_FULL(2), + /** + * + * + *
+   * Top-most (Database, Schema) nodes which are returned contains summary
+   * details for their decendents such as the number of entities per type and
+   * issues rollups. When this view is used, only a single page of result is
+   * returned and the page_size property of the request is ignored. The
+   * returned page will only include the top-most node types.
+   * 
+ * + * DATABASE_ENTITY_VIEW_ROOT_SUMMARY = 3; + */ + DATABASE_ENTITY_VIEW_ROOT_SUMMARY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified view. Defaults to basic view.
+   * 
+ * + * DATABASE_ENTITY_VIEW_UNSPECIFIED = 0; + */ + public static final int DATABASE_ENTITY_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Default view. Does not return DDLs or Issues.
+   * 
+ * + * DATABASE_ENTITY_VIEW_BASIC = 1; + */ + public static final int DATABASE_ENTITY_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * Return full entity details including mappings, ddl and issues.
+   * 
+ * + * DATABASE_ENTITY_VIEW_FULL = 2; + */ + public static final int DATABASE_ENTITY_VIEW_FULL_VALUE = 2; + /** + * + * + *
+   * Top-most (Database, Schema) nodes which are returned contains summary
+   * details for their decendents such as the number of entities per type and
+   * issues rollups. When this view is used, only a single page of result is
+   * returned and the page_size property of the request is ignored. The
+   * returned page will only include the top-most node types.
+   * 
+ * + * DATABASE_ENTITY_VIEW_ROOT_SUMMARY = 3; + */ + public static final int DATABASE_ENTITY_VIEW_ROOT_SUMMARY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatabaseEntityView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatabaseEntityView forNumber(int value) { + switch (value) { + case 0: + return DATABASE_ENTITY_VIEW_UNSPECIFIED; + case 1: + return DATABASE_ENTITY_VIEW_BASIC; + case 2: + return DATABASE_ENTITY_VIEW_FULL; + case 3: + return DATABASE_ENTITY_VIEW_ROOT_SUMMARY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseEntityView findValueByNumber(int number) { + return DatabaseEntityView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DatabaseEntityView[] VALUES = values(); + + public static DatabaseEntityView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DatabaseEntityView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DatabaseEntityView) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseInstanceEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseInstanceEntity.java new file mode 100644 index 000000000000..9879b81c7d7d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseInstanceEntity.java @@ -0,0 +1,706 @@ +/* + * 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; + +/** + * + * + *
+ * DatabaseInstance acts as a parent entity to other database entities.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DatabaseInstanceEntity} + */ +public final class DatabaseInstanceEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DatabaseInstanceEntity) + DatabaseInstanceEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseInstanceEntity.newBuilder() to construct. + private DatabaseInstanceEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseInstanceEntity() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseInstanceEntity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.class, + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.Builder.class); + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 1; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (customFeatures_ != null) { + output.writeMessage(1, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DatabaseInstanceEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DatabaseInstanceEntity other = + (com.google.cloud.clouddms.v1.DatabaseInstanceEntity) obj; + + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DatabaseInstanceEntity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseInstanceEntity 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.DatabaseInstanceEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseInstanceEntity 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.DatabaseInstanceEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseInstanceEntity 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.DatabaseInstanceEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseInstanceEntity 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.DatabaseInstanceEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseInstanceEntity 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.DatabaseInstanceEntity 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.DatabaseInstanceEntity 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.DatabaseInstanceEntity 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; + } + /** + * + * + *
+   * DatabaseInstance acts as a parent entity to other database entities.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DatabaseInstanceEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DatabaseInstanceEntity) + com.google.cloud.clouddms.v1.DatabaseInstanceEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.class, + com.google.cloud.clouddms.v1.DatabaseInstanceEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DatabaseInstanceEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseInstanceEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseInstanceEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseInstanceEntity build() { + com.google.cloud.clouddms.v1.DatabaseInstanceEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseInstanceEntity buildPartial() { + com.google.cloud.clouddms.v1.DatabaseInstanceEntity result = + new com.google.cloud.clouddms.v1.DatabaseInstanceEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.DatabaseInstanceEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.DatabaseInstanceEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.DatabaseInstanceEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DatabaseInstanceEntity other) { + if (other == com.google.cloud.clouddms.v1.DatabaseInstanceEntity.getDefaultInstance()) + return this; + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000001); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DatabaseInstanceEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DatabaseInstanceEntity) + private static final com.google.cloud.clouddms.v1.DatabaseInstanceEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DatabaseInstanceEntity(); + } + + public static com.google.cloud.clouddms.v1.DatabaseInstanceEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseInstanceEntity 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.DatabaseInstanceEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseInstanceEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseInstanceEntityOrBuilder.java new file mode 100644 index 000000000000..01cc0f8e7cad --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseInstanceEntityOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 DatabaseInstanceEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DatabaseInstanceEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequest.java index 4b296534920b..2274b3643fef 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequest.java @@ -182,6 +182,25 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
+   * Force delete the conversion workspace, even if there's a running migration
+   * that is using the workspace.
+   * 
+ * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -202,6 +221,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); } + if (force_ != false) { + output.writeBool(3, force_); + } getUnknownFields().writeTo(output); } @@ -217,6 +239,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +260,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,6 +276,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -392,6 +420,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; requestId_ = ""; + force_ = false; return this; } @@ -436,6 +465,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } } @java.lang.Override @@ -495,6 +527,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.DeleteConversionWorkspaceR bitField0_ |= 0x00000002; onChanged(); } + if (other.getForce() != false) { + setForce(other.getForce()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -533,6 +568,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -804,6 +845,62 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean force_; + /** + * + * + *
+     * Force delete the conversion workspace, even if there's a running migration
+     * that is using the workspace.
+     * 
+ * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Force delete the conversion workspace, even if there's a running migration
+     * that is using the workspace.
+     * 
+ * + * bool force = 3; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Force delete the conversion workspace, even if there's a running migration
+     * that is using the workspace.
+     * 
+ * + * bool force = 3; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequestOrBuilder.java index 73794683d7ed..a9663f52c913 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequestOrBuilder.java @@ -88,4 +88,18 @@ public interface DeleteConversionWorkspaceRequestOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Force delete the conversion workspace, even if there's a running migration
+   * that is using the workspace.
+   * 
+ * + * bool force = 3; + * + * @return The force. + */ + boolean getForce(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMappingRuleRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMappingRuleRequest.java new file mode 100644 index 000000000000..ce2ef49f7ea5 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMappingRuleRequest.java @@ -0,0 +1,863 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'DeleteMappingRule' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DeleteMappingRuleRequest} + */ +public final class DeleteMappingRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DeleteMappingRuleRequest) + DeleteMappingRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMappingRuleRequest.newBuilder() to construct. + private DeleteMappingRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMappingRuleRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMappingRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.class, + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the mapping rule resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the mapping rule resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DeleteMappingRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest other = + (com.google.cloud.clouddms.v1.DeleteMappingRuleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DeleteMappingRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeleteMappingRuleRequest 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.DeleteMappingRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeleteMappingRuleRequest 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.DeleteMappingRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeleteMappingRuleRequest 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.DeleteMappingRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeleteMappingRuleRequest 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.DeleteMappingRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeleteMappingRuleRequest 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.DeleteMappingRuleRequest 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.DeleteMappingRuleRequest 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.DeleteMappingRuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for 'DeleteMappingRule' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DeleteMappingRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DeleteMappingRuleRequest) + com.google.cloud.clouddms.v1.DeleteMappingRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.class, + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMappingRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeleteMappingRuleRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeleteMappingRuleRequest build() { + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeleteMappingRuleRequest buildPartial() { + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest result = + new com.google.cloud.clouddms.v1.DeleteMappingRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.DeleteMappingRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.DeleteMappingRuleRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.DeleteMappingRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DeleteMappingRuleRequest other) { + if (other == com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the mapping rule resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the mapping rule resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the mapping rule resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the mapping rule resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the mapping rule resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     *
+     * It is recommended to always set this value to a UUID.
+     *
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DeleteMappingRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DeleteMappingRuleRequest) + private static final com.google.cloud.clouddms.v1.DeleteMappingRuleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DeleteMappingRuleRequest(); + } + + public static com.google.cloud.clouddms.v1.DeleteMappingRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMappingRuleRequest 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.DeleteMappingRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMappingRuleRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMappingRuleRequestOrBuilder.java new file mode 100644 index 000000000000..17f0461ff71f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMappingRuleRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface DeleteMappingRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DeleteMappingRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the mapping rule resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the mapping rule resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   *
+   * It is recommended to always set this value to a UUID.
+   *
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequest.java index b79a9c976a54..3e926a70e2a7 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequest.java @@ -44,6 +44,7 @@ private DescribeDatabaseEntitiesRequest() { tree_ = 0; commitId_ = ""; filter_ = ""; + view_ = 0; } @java.lang.Override @@ -313,11 +314,11 @@ public com.google.protobuf.ByteString getConversionWorkspaceBytes() { * * *
-   * The maximum number of entities to return. The service may return
+   * Optional. The maximum number of entities to return. The service may return
    * fewer entities than the value specifies.
    * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -334,7 +335,7 @@ public int getPageSize() { * * *
-   * The nextPageToken value received in the previous call to
+   * Optional. The nextPageToken value received in the previous call to
    * conversionWorkspace.describeDatabaseEntities, used in the subsequent
    * request to retrieve the next page of results. On first call this should be
    * left blank. When paginating, all other parameters provided to
@@ -342,7 +343,7 @@ public int getPageSize() {
    * provided the page token.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -362,7 +363,7 @@ public java.lang.String getPageToken() { * * *
-   * The nextPageToken value received in the previous call to
+   * Optional. The nextPageToken value received in the previous call to
    * conversionWorkspace.describeDatabaseEntities, used in the subsequent
    * request to retrieve the next page of results. On first call this should be
    * left blank. When paginating, all other parameters provided to
@@ -370,7 +371,7 @@ public java.lang.String getPageToken() {
    * provided the page token.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -393,10 +394,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * The tree to fetch.
+   * Required. The tree to fetch.
    * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for tree. */ @@ -408,10 +411,12 @@ public int getTreeValue() { * * *
-   * The tree to fetch.
+   * Required. The tree to fetch.
    * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The tree. */ @@ -430,11 +435,12 @@ public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType g * * *
-   * Whether to retrieve the latest committed version of the entities or the
-   * latest version. This field is ignored if a specific commit_id is specified.
+   * Optional. Whether to retrieve the latest committed version of the entities
+   * or the latest version. This field is ignored if a specific commit_id is
+   * specified.
    * 
* - * bool uncommitted = 11; + * bool uncommitted = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The uncommitted. */ @@ -451,11 +457,11 @@ public boolean getUncommitted() { * * *
-   * Request a specific commit ID. If not specified, the entities from the
-   * latest commit are returned.
+   * Optional. Request a specific commit ID. If not specified, the entities from
+   * the latest commit are returned.
    * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The commitId. */ @@ -475,11 +481,11 @@ public java.lang.String getCommitId() { * * *
-   * Request a specific commit ID. If not specified, the entities from the
-   * latest commit are returned.
+   * Optional. Request a specific commit ID. If not specified, the entities from
+   * the latest commit are returned.
    * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for commitId. */ @@ -504,10 +510,10 @@ public com.google.protobuf.ByteString getCommitIdBytes() { * * *
-   * Filter the returned entities based on AIP-160 standard.
+   * Optional. Filter the returned entities based on AIP-160 standard.
    * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -527,10 +533,10 @@ public java.lang.String getFilter() { * * *
-   * Filter the returned entities based on AIP-160 standard.
+   * Optional. Filter the returned entities based on AIP-160 standard.
    * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -547,6 +553,45 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int VIEW_FIELD_NUMBER = 14; + private int view_ = 0; + /** + * + * + *
+   * Optional. Results view based on AIP-157
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. Results view based on AIP-157
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityView getView() { + com.google.cloud.clouddms.v1.DatabaseEntityView result = + com.google.cloud.clouddms.v1.DatabaseEntityView.forNumber(view_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityView.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -585,6 +630,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, filter_); } + if (view_ + != com.google.cloud.clouddms.v1.DatabaseEntityView.DATABASE_ENTITY_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, view_); + } getUnknownFields().writeTo(output); } @@ -618,6 +668,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, filter_); } + if (view_ + != com.google.cloud.clouddms.v1.DatabaseEntityView.DATABASE_ENTITY_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, view_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -641,6 +696,7 @@ public boolean equals(final java.lang.Object obj) { if (getUncommitted() != other.getUncommitted()) return false; if (!getCommitId().equals(other.getCommitId())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -666,6 +722,8 @@ public int hashCode() { hash = (53 * hash) + getCommitId().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -813,6 +871,7 @@ public Builder clear() { uncommitted_ = false; commitId_ = ""; filter_ = ""; + view_ = 0; return this; } @@ -872,6 +931,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000040) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.view_ = view_; + } } @java.lang.Override @@ -950,6 +1012,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRe bitField0_ |= 0x00000040; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1018,6 +1083,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 106 + case 112: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1168,11 +1239,11 @@ public Builder setConversionWorkspaceBytes(com.google.protobuf.ByteString value) * * *
-     * The maximum number of entities to return. The service may return
+     * Optional. The maximum number of entities to return. The service may return
      * fewer entities than the value specifies.
      * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -1184,11 +1255,11 @@ public int getPageSize() { * * *
-     * The maximum number of entities to return. The service may return
+     * Optional. The maximum number of entities to return. The service may return
      * fewer entities than the value specifies.
      * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -1204,11 +1275,11 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of entities to return. The service may return
+     * Optional. The maximum number of entities to return. The service may return
      * fewer entities than the value specifies.
      * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1224,7 +1295,7 @@ public Builder clearPageSize() { * * *
-     * The nextPageToken value received in the previous call to
+     * Optional. The nextPageToken value received in the previous call to
      * conversionWorkspace.describeDatabaseEntities, used in the subsequent
      * request to retrieve the next page of results. On first call this should be
      * left blank. When paginating, all other parameters provided to
@@ -1232,7 +1303,7 @@ public Builder clearPageSize() {
      * provided the page token.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -1251,7 +1322,7 @@ public java.lang.String getPageToken() { * * *
-     * The nextPageToken value received in the previous call to
+     * Optional. The nextPageToken value received in the previous call to
      * conversionWorkspace.describeDatabaseEntities, used in the subsequent
      * request to retrieve the next page of results. On first call this should be
      * left blank. When paginating, all other parameters provided to
@@ -1259,7 +1330,7 @@ public java.lang.String getPageToken() {
      * provided the page token.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1278,7 +1349,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The nextPageToken value received in the previous call to
+     * Optional. The nextPageToken value received in the previous call to
      * conversionWorkspace.describeDatabaseEntities, used in the subsequent
      * request to retrieve the next page of results. On first call this should be
      * left blank. When paginating, all other parameters provided to
@@ -1286,7 +1357,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * provided the page token.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1304,7 +1375,7 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The nextPageToken value received in the previous call to
+     * Optional. The nextPageToken value received in the previous call to
      * conversionWorkspace.describeDatabaseEntities, used in the subsequent
      * request to retrieve the next page of results. On first call this should be
      * left blank. When paginating, all other parameters provided to
@@ -1312,7 +1383,7 @@ public Builder setPageToken(java.lang.String value) {
      * provided the page token.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1326,7 +1397,7 @@ public Builder clearPageToken() { * * *
-     * The nextPageToken value received in the previous call to
+     * Optional. The nextPageToken value received in the previous call to
      * conversionWorkspace.describeDatabaseEntities, used in the subsequent
      * request to retrieve the next page of results. On first call this should be
      * left blank. When paginating, all other parameters provided to
@@ -1334,7 +1405,7 @@ public Builder clearPageToken() {
      * provided the page token.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1355,10 +1426,12 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * The tree to fetch.
+     * Required. The tree to fetch.
      * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for tree. */ @@ -1370,10 +1443,12 @@ public int getTreeValue() { * * *
-     * The tree to fetch.
+     * Required. The tree to fetch.
      * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The enum numeric value on the wire for tree to set. * @return This builder for chaining. @@ -1388,10 +1463,12 @@ public Builder setTreeValue(int value) { * * *
-     * The tree to fetch.
+     * Required. The tree to fetch.
      * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The tree. */ @@ -1407,10 +1484,12 @@ public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType g * * *
-     * The tree to fetch.
+     * Required. The tree to fetch.
      * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The tree to set. * @return This builder for chaining. @@ -1429,10 +1508,12 @@ public Builder setTree( * * *
-     * The tree to fetch.
+     * Required. The tree to fetch.
      * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ @@ -1448,11 +1529,12 @@ public Builder clearTree() { * * *
-     * Whether to retrieve the latest committed version of the entities or the
-     * latest version. This field is ignored if a specific commit_id is specified.
+     * Optional. Whether to retrieve the latest committed version of the entities
+     * or the latest version. This field is ignored if a specific commit_id is
+     * specified.
      * 
* - * bool uncommitted = 11; + * bool uncommitted = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The uncommitted. */ @@ -1464,11 +1546,12 @@ public boolean getUncommitted() { * * *
-     * Whether to retrieve the latest committed version of the entities or the
-     * latest version. This field is ignored if a specific commit_id is specified.
+     * Optional. Whether to retrieve the latest committed version of the entities
+     * or the latest version. This field is ignored if a specific commit_id is
+     * specified.
      * 
* - * bool uncommitted = 11; + * bool uncommitted = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The uncommitted to set. * @return This builder for chaining. @@ -1484,11 +1567,12 @@ public Builder setUncommitted(boolean value) { * * *
-     * Whether to retrieve the latest committed version of the entities or the
-     * latest version. This field is ignored if a specific commit_id is specified.
+     * Optional. Whether to retrieve the latest committed version of the entities
+     * or the latest version. This field is ignored if a specific commit_id is
+     * specified.
      * 
* - * bool uncommitted = 11; + * bool uncommitted = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1504,11 +1588,11 @@ public Builder clearUncommitted() { * * *
-     * Request a specific commit ID. If not specified, the entities from the
-     * latest commit are returned.
+     * Optional. Request a specific commit ID. If not specified, the entities from
+     * the latest commit are returned.
      * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The commitId. */ @@ -1527,11 +1611,11 @@ public java.lang.String getCommitId() { * * *
-     * Request a specific commit ID. If not specified, the entities from the
-     * latest commit are returned.
+     * Optional. Request a specific commit ID. If not specified, the entities from
+     * the latest commit are returned.
      * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for commitId. */ @@ -1550,11 +1634,11 @@ public com.google.protobuf.ByteString getCommitIdBytes() { * * *
-     * Request a specific commit ID. If not specified, the entities from the
-     * latest commit are returned.
+     * Optional. Request a specific commit ID. If not specified, the entities from
+     * the latest commit are returned.
      * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The commitId to set. * @return This builder for chaining. @@ -1572,11 +1656,11 @@ public Builder setCommitId(java.lang.String value) { * * *
-     * Request a specific commit ID. If not specified, the entities from the
-     * latest commit are returned.
+     * Optional. Request a specific commit ID. If not specified, the entities from
+     * the latest commit are returned.
      * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1590,11 +1674,11 @@ public Builder clearCommitId() { * * *
-     * Request a specific commit ID. If not specified, the entities from the
-     * latest commit are returned.
+     * Optional. Request a specific commit ID. If not specified, the entities from
+     * the latest commit are returned.
      * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for commitId to set. * @return This builder for chaining. @@ -1615,10 +1699,10 @@ public Builder setCommitIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Filter the returned entities based on AIP-160 standard.
+     * Optional. Filter the returned entities based on AIP-160 standard.
      * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1637,10 +1721,10 @@ public java.lang.String getFilter() { * * *
-     * Filter the returned entities based on AIP-160 standard.
+     * Optional. Filter the returned entities based on AIP-160 standard.
      * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1659,10 +1743,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Filter the returned entities based on AIP-160 standard.
+     * Optional. Filter the returned entities based on AIP-160 standard.
      * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1680,10 +1764,10 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Filter the returned entities based on AIP-160 standard.
+     * Optional. Filter the returned entities based on AIP-160 standard.
      * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1697,10 +1781,10 @@ public Builder clearFilter() { * * *
-     * Filter the returned entities based on AIP-160 standard.
+     * Optional. Filter the returned entities based on AIP-160 standard.
      * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1716,6 +1800,106 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private int view_ = 0; + /** + * + * + *
+     * Optional. Results view based on AIP-157
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. Results view based on AIP-157
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Results view based on AIP-157
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityView getView() { + com.google.cloud.clouddms.v1.DatabaseEntityView result = + com.google.cloud.clouddms.v1.DatabaseEntityView.forNumber(view_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. Results view based on AIP-157
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.clouddms.v1.DatabaseEntityView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Results view based on AIP-157
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000080); + view_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequestOrBuilder.java index 2aa6b018217b..9f0c38a6af54 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequestOrBuilder.java @@ -60,11 +60,11 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * The maximum number of entities to return. The service may return
+   * Optional. The maximum number of entities to return. The service may return
    * fewer entities than the value specifies.
    * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -74,7 +74,7 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * The nextPageToken value received in the previous call to
+   * Optional. The nextPageToken value received in the previous call to
    * conversionWorkspace.describeDatabaseEntities, used in the subsequent
    * request to retrieve the next page of results. On first call this should be
    * left blank. When paginating, all other parameters provided to
@@ -82,7 +82,7 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder
    * provided the page token.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -91,7 +91,7 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * The nextPageToken value received in the previous call to
+   * Optional. The nextPageToken value received in the previous call to
    * conversionWorkspace.describeDatabaseEntities, used in the subsequent
    * request to retrieve the next page of results. On first call this should be
    * left blank. When paginating, all other parameters provided to
@@ -99,7 +99,7 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder
    * provided the page token.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -109,10 +109,12 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * The tree to fetch.
+   * Required. The tree to fetch.
    * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for tree. */ @@ -121,10 +123,12 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * The tree to fetch.
+   * Required. The tree to fetch.
    * 
* - * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The tree. */ @@ -134,11 +138,12 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * Whether to retrieve the latest committed version of the entities or the
-   * latest version. This field is ignored if a specific commit_id is specified.
+   * Optional. Whether to retrieve the latest committed version of the entities
+   * or the latest version. This field is ignored if a specific commit_id is
+   * specified.
    * 
* - * bool uncommitted = 11; + * bool uncommitted = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The uncommitted. */ @@ -148,11 +153,11 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * Request a specific commit ID. If not specified, the entities from the
-   * latest commit are returned.
+   * Optional. Request a specific commit ID. If not specified, the entities from
+   * the latest commit are returned.
    * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The commitId. */ @@ -161,11 +166,11 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * Request a specific commit ID. If not specified, the entities from the
-   * latest commit are returned.
+   * Optional. Request a specific commit ID. If not specified, the entities from
+   * the latest commit are returned.
    * 
* - * string commit_id = 12; + * string commit_id = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for commitId. */ @@ -175,10 +180,10 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * Filter the returned entities based on AIP-160 standard.
+   * Optional. Filter the returned entities based on AIP-160 standard.
    * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -187,12 +192,41 @@ public interface DescribeDatabaseEntitiesRequestOrBuilder * * *
-   * Filter the returned entities based on AIP-160 standard.
+   * Optional. Filter the returned entities based on AIP-160 standard.
    * 
* - * string filter = 13; + * string filter = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Results view based on AIP-157
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. Results view based on AIP-157
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityView view = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.clouddms.v1.DatabaseEntityView getView(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DoubleComparisonFilter.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DoubleComparisonFilter.java new file mode 100644 index 000000000000..d45846301f24 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DoubleComparisonFilter.java @@ -0,0 +1,704 @@ +/* + * 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; + +/** + * + * + *
+ * Filter based on relation between source
+ * value and compare value of type double in ConditionalColumnSetValue
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DoubleComparisonFilter} + */ +public final class DoubleComparisonFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DoubleComparisonFilter) + DoubleComparisonFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use DoubleComparisonFilter.newBuilder() to construct. + private DoubleComparisonFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DoubleComparisonFilter() { + valueComparison_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DoubleComparisonFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DoubleComparisonFilter.class, + com.google.cloud.clouddms.v1.DoubleComparisonFilter.Builder.class); + } + + public static final int VALUE_COMPARISON_FIELD_NUMBER = 1; + private int valueComparison_ = 0; + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valueComparison. + */ + @java.lang.Override + public int getValueComparisonValue() { + return valueComparison_; + } + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueComparison getValueComparison() { + com.google.cloud.clouddms.v1.ValueComparison result = + com.google.cloud.clouddms.v1.ValueComparison.forNumber(valueComparison_); + return result == null ? com.google.cloud.clouddms.v1.ValueComparison.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private double value_ = 0D; + /** + * + * + *
+   * Required. Double compare value to be used
+   * 
+ * + * double value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + 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 (valueComparison_ + != com.google.cloud.clouddms.v1.ValueComparison.VALUE_COMPARISON_UNSPECIFIED.getNumber()) { + output.writeEnum(1, valueComparison_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + output.writeDouble(2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueComparison_ + != com.google.cloud.clouddms.v1.ValueComparison.VALUE_COMPARISON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, valueComparison_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, 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.DoubleComparisonFilter)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DoubleComparisonFilter other = + (com.google.cloud.clouddms.v1.DoubleComparisonFilter) obj; + + if (valueComparison_ != other.valueComparison_) return false; + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits(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_COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + valueComparison_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DoubleComparisonFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DoubleComparisonFilter 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.DoubleComparisonFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DoubleComparisonFilter 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.DoubleComparisonFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DoubleComparisonFilter 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.DoubleComparisonFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DoubleComparisonFilter 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.DoubleComparisonFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DoubleComparisonFilter 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.DoubleComparisonFilter 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.DoubleComparisonFilter 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.DoubleComparisonFilter 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; + } + /** + * + * + *
+   * Filter based on relation between source
+   * value and compare value of type double in ConditionalColumnSetValue
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DoubleComparisonFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DoubleComparisonFilter) + com.google.cloud.clouddms.v1.DoubleComparisonFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DoubleComparisonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DoubleComparisonFilter.class, + com.google.cloud.clouddms.v1.DoubleComparisonFilter.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DoubleComparisonFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + valueComparison_ = 0; + value_ = 0D; + 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_DoubleComparisonFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DoubleComparisonFilter getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DoubleComparisonFilter build() { + com.google.cloud.clouddms.v1.DoubleComparisonFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DoubleComparisonFilter buildPartial() { + com.google.cloud.clouddms.v1.DoubleComparisonFilter result = + new com.google.cloud.clouddms.v1.DoubleComparisonFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.DoubleComparisonFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.valueComparison_ = valueComparison_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.DoubleComparisonFilter) { + return mergeFrom((com.google.cloud.clouddms.v1.DoubleComparisonFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DoubleComparisonFilter other) { + if (other == com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance()) + return this; + if (other.valueComparison_ != 0) { + setValueComparisonValue(other.getValueComparisonValue()); + } + if (other.getValue() != 0D) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + valueComparison_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 17: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int valueComparison_ = 0; + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valueComparison. + */ + @java.lang.Override + public int getValueComparisonValue() { + return valueComparison_; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for valueComparison to set. + * @return This builder for chaining. + */ + public Builder setValueComparisonValue(int value) { + valueComparison_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueComparison getValueComparison() { + com.google.cloud.clouddms.v1.ValueComparison result = + com.google.cloud.clouddms.v1.ValueComparison.forNumber(valueComparison_); + return result == null ? com.google.cloud.clouddms.v1.ValueComparison.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The valueComparison to set. + * @return This builder for chaining. + */ + public Builder setValueComparison(com.google.cloud.clouddms.v1.ValueComparison value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + valueComparison_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearValueComparison() { + bitField0_ = (bitField0_ & ~0x00000001); + valueComparison_ = 0; + onChanged(); + return this; + } + + private double value_; + /** + * + * + *
+     * Required. Double compare value to be used
+     * 
+ * + * double value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + /** + * + * + *
+     * Required. Double compare value to be used
+     * 
+ * + * double value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Double compare value to be used
+     * 
+ * + * double value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = 0D; + 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.DoubleComparisonFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DoubleComparisonFilter) + private static final com.google.cloud.clouddms.v1.DoubleComparisonFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DoubleComparisonFilter(); + } + + public static com.google.cloud.clouddms.v1.DoubleComparisonFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoubleComparisonFilter 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.DoubleComparisonFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DoubleComparisonFilterOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DoubleComparisonFilterOrBuilder.java new file mode 100644 index 000000000000..b38b668ca669 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DoubleComparisonFilterOrBuilder.java @@ -0,0 +1,67 @@ +/* + * 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 DoubleComparisonFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DoubleComparisonFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valueComparison. + */ + int getValueComparisonValue(); + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueComparison. + */ + com.google.cloud.clouddms.v1.ValueComparison getValueComparison(); + + /** + * + * + *
+   * Required. Double compare value to be used
+   * 
+ * + * double value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + double getValue(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityDdl.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityDdl.java new file mode 100644 index 000000000000..2e90312fad50 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityDdl.java @@ -0,0 +1,1415 @@ +/* + * 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; + +/** + * + * + *
+ * A single DDL statement for a specific entity
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityDdl} + */ +public final class EntityDdl extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.EntityDdl) + EntityDdlOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityDdl.newBuilder() to construct. + private EntityDdl(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityDdl() { + ddlType_ = ""; + entity_ = ""; + ddl_ = ""; + entityType_ = 0; + issueId_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityDdl(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityDdl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityDdl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityDdl.class, + com.google.cloud.clouddms.v1.EntityDdl.Builder.class); + } + + public static final int DDL_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ddlType_ = ""; + /** + * + * + *
+   * Type of DDL (Create, Alter).
+   * 
+ * + * string ddl_type = 1; + * + * @return The ddlType. + */ + @java.lang.Override + public java.lang.String getDdlType() { + java.lang.Object ref = ddlType_; + 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(); + ddlType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of DDL (Create, Alter).
+   * 
+ * + * string ddl_type = 1; + * + * @return The bytes for ddlType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDdlTypeBytes() { + java.lang.Object ref = ddlType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ddlType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object entity_ = ""; + /** + * + * + *
+   * The name of the database entity the ddl refers to.
+   * 
+ * + * string entity = 2; + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + 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(); + entity_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the database entity the ddl refers to.
+   * 
+ * + * string entity = 2; + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DDL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ddl_ = ""; + /** + * + * + *
+   * The actual ddl code.
+   * 
+ * + * string ddl = 3; + * + * @return The ddl. + */ + @java.lang.Override + public java.lang.String getDdl() { + java.lang.Object ref = ddl_; + 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(); + ddl_ = s; + return s; + } + } + /** + * + * + *
+   * The actual ddl code.
+   * 
+ * + * string ddl = 3; + * + * @return The bytes for ddl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDdlBytes() { + java.lang.Object ref = ddl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ddl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 4; + private int entityType_ = 0; + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override + public int getEntityTypeValue() { + return entityType_; + } + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(entityType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + + public static final int ISSUE_ID_FIELD_NUMBER = 100; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList issueId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @return A list containing the issueId. + */ + public com.google.protobuf.ProtocolStringList getIssueIdList() { + return issueId_; + } + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @return The count of issueId. + */ + public int getIssueIdCount() { + return issueId_.size(); + } + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @param index The index of the element to return. + * @return The issueId at the given index. + */ + public java.lang.String getIssueId(int index) { + return issueId_.get(index); + } + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @param index The index of the value to return. + * @return The bytes of the issueId at the given index. + */ + public com.google.protobuf.ByteString getIssueIdBytes(int index) { + return issueId_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ddlType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ddlType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ddl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ddl_); + } + if (entityType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, entityType_); + } + for (int i = 0; i < issueId_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, issueId_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ddlType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ddlType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ddl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ddl_); + } + if (entityType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, entityType_); + } + { + int dataSize = 0; + for (int i = 0; i < issueId_.size(); i++) { + dataSize += computeStringSizeNoTag(issueId_.getRaw(i)); + } + size += dataSize; + size += 2 * getIssueIdList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.EntityDdl)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.EntityDdl other = (com.google.cloud.clouddms.v1.EntityDdl) obj; + + if (!getDdlType().equals(other.getDdlType())) return false; + if (!getEntity().equals(other.getEntity())) return false; + if (!getDdl().equals(other.getDdl())) return false; + if (entityType_ != other.entityType_) return false; + if (!getIssueIdList().equals(other.getIssueIdList())) 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) + DDL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDdlType().hashCode(); + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + hash = (37 * hash) + DDL_FIELD_NUMBER; + hash = (53 * hash) + getDdl().hashCode(); + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + entityType_; + if (getIssueIdCount() > 0) { + hash = (37 * hash) + ISSUE_ID_FIELD_NUMBER; + hash = (53 * hash) + getIssueIdList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.EntityDdl parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityDdl 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.EntityDdl parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityDdl 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.EntityDdl parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityDdl 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.EntityDdl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityDdl 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.EntityDdl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityDdl 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.EntityDdl 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.EntityDdl 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.EntityDdl prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A single DDL statement for a specific entity
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityDdl} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.EntityDdl) + com.google.cloud.clouddms.v1.EntityDdlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityDdl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityDdl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityDdl.class, + com.google.cloud.clouddms.v1.EntityDdl.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.EntityDdl.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ddlType_ = ""; + entity_ = ""; + ddl_ = ""; + entityType_ = 0; + issueId_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_EntityDdl_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityDdl getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.EntityDdl.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityDdl build() { + com.google.cloud.clouddms.v1.EntityDdl result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityDdl buildPartial() { + com.google.cloud.clouddms.v1.EntityDdl result = + new com.google.cloud.clouddms.v1.EntityDdl(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.EntityDdl result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ddlType_ = ddlType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entity_ = entity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ddl_ = ddl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + issueId_.makeImmutable(); + result.issueId_ = issueId_; + } + } + + @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.EntityDdl) { + return mergeFrom((com.google.cloud.clouddms.v1.EntityDdl) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.EntityDdl other) { + if (other == com.google.cloud.clouddms.v1.EntityDdl.getDefaultInstance()) return this; + if (!other.getDdlType().isEmpty()) { + ddlType_ = other.ddlType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEntity().isEmpty()) { + entity_ = other.entity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDdl().isEmpty()) { + ddl_ = other.ddl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.entityType_ != 0) { + setEntityTypeValue(other.getEntityTypeValue()); + } + if (!other.issueId_.isEmpty()) { + if (issueId_.isEmpty()) { + issueId_ = other.issueId_; + bitField0_ |= 0x00000010; + } else { + ensureIssueIdIsMutable(); + issueId_.addAll(other.issueId_); + } + 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: + { + ddlType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + ddl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + entityType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIssueIdIsMutable(); + issueId_.add(s); + break; + } // case 802 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object ddlType_ = ""; + /** + * + * + *
+     * Type of DDL (Create, Alter).
+     * 
+ * + * string ddl_type = 1; + * + * @return The ddlType. + */ + public java.lang.String getDdlType() { + java.lang.Object ref = ddlType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ddlType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of DDL (Create, Alter).
+     * 
+ * + * string ddl_type = 1; + * + * @return The bytes for ddlType. + */ + public com.google.protobuf.ByteString getDdlTypeBytes() { + java.lang.Object ref = ddlType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ddlType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of DDL (Create, Alter).
+     * 
+ * + * string ddl_type = 1; + * + * @param value The ddlType to set. + * @return This builder for chaining. + */ + public Builder setDdlType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ddlType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of DDL (Create, Alter).
+     * 
+ * + * string ddl_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearDdlType() { + ddlType_ = getDefaultInstance().getDdlType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of DDL (Create, Alter).
+     * 
+ * + * string ddl_type = 1; + * + * @param value The bytes for ddlType to set. + * @return This builder for chaining. + */ + public Builder setDdlTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ddlType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object entity_ = ""; + /** + * + * + *
+     * The name of the database entity the ddl refers to.
+     * 
+ * + * string entity = 2; + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the database entity the ddl refers to.
+     * 
+ * + * string entity = 2; + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the database entity the ddl refers to.
+     * 
+ * + * string entity = 2; + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the database entity the ddl refers to.
+     * 
+ * + * string entity = 2; + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + entity_ = getDefaultInstance().getEntity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the database entity the ddl refers to.
+     * 
+ * + * string entity = 2; + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ddl_ = ""; + /** + * + * + *
+     * The actual ddl code.
+     * 
+ * + * string ddl = 3; + * + * @return The ddl. + */ + public java.lang.String getDdl() { + java.lang.Object ref = ddl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ddl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The actual ddl code.
+     * 
+ * + * string ddl = 3; + * + * @return The bytes for ddl. + */ + public com.google.protobuf.ByteString getDdlBytes() { + java.lang.Object ref = ddl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ddl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The actual ddl code.
+     * 
+ * + * string ddl = 3; + * + * @param value The ddl to set. + * @return This builder for chaining. + */ + public Builder setDdl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ddl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The actual ddl code.
+     * 
+ * + * string ddl = 3; + * + * @return This builder for chaining. + */ + public Builder clearDdl() { + ddl_ = getDefaultInstance().getDdl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The actual ddl code.
+     * 
+ * + * string ddl = 3; + * + * @param value The bytes for ddl to set. + * @return This builder for chaining. + */ + public Builder setDdlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ddl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int entityType_ = 0; + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override + public int getEntityTypeValue() { + return entityType_; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @param value The enum numeric value on the wire for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeValue(int value) { + entityType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(entityType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(com.google.cloud.clouddms.v1.DatabaseEntityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + entityType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + bitField0_ = (bitField0_ & ~0x00000008); + entityType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList issueId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIssueIdIsMutable() { + if (!issueId_.isModifiable()) { + issueId_ = new com.google.protobuf.LazyStringArrayList(issueId_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @return A list containing the issueId. + */ + public com.google.protobuf.ProtocolStringList getIssueIdList() { + issueId_.makeImmutable(); + return issueId_; + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @return The count of issueId. + */ + public int getIssueIdCount() { + return issueId_.size(); + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @param index The index of the element to return. + * @return The issueId at the given index. + */ + public java.lang.String getIssueId(int index) { + return issueId_.get(index); + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @param index The index of the value to return. + * @return The bytes of the issueId at the given index. + */ + public com.google.protobuf.ByteString getIssueIdBytes(int index) { + return issueId_.getByteString(index); + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @param index The index to set the value at. + * @param value The issueId to set. + * @return This builder for chaining. + */ + public Builder setIssueId(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssueIdIsMutable(); + issueId_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @param value The issueId to add. + * @return This builder for chaining. + */ + public Builder addIssueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssueIdIsMutable(); + issueId_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @param values The issueId to add. + * @return This builder for chaining. + */ + public Builder addAllIssueId(java.lang.Iterable values) { + ensureIssueIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issueId_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @return This builder for chaining. + */ + public Builder clearIssueId() { + issueId_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * EntityIssues found for this ddl.
+     * 
+ * + * repeated string issue_id = 100; + * + * @param value The bytes of the issueId to add. + * @return This builder for chaining. + */ + public Builder addIssueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIssueIdIsMutable(); + issueId_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.EntityDdl) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.EntityDdl) + private static final com.google.cloud.clouddms.v1.EntityDdl DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.EntityDdl(); + } + + public static com.google.cloud.clouddms.v1.EntityDdl getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityDdl 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.EntityDdl getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityDdlOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityDdlOrBuilder.java new file mode 100644 index 000000000000..b75effe58f34 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityDdlOrBuilder.java @@ -0,0 +1,176 @@ +/* + * 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 EntityDdlOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.EntityDdl) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of DDL (Create, Alter).
+   * 
+ * + * string ddl_type = 1; + * + * @return The ddlType. + */ + java.lang.String getDdlType(); + /** + * + * + *
+   * Type of DDL (Create, Alter).
+   * 
+ * + * string ddl_type = 1; + * + * @return The bytes for ddlType. + */ + com.google.protobuf.ByteString getDdlTypeBytes(); + + /** + * + * + *
+   * The name of the database entity the ddl refers to.
+   * 
+ * + * string entity = 2; + * + * @return The entity. + */ + java.lang.String getEntity(); + /** + * + * + *
+   * The name of the database entity the ddl refers to.
+   * 
+ * + * string entity = 2; + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); + + /** + * + * + *
+   * The actual ddl code.
+   * 
+ * + * string ddl = 3; + * + * @return The ddl. + */ + java.lang.String getDdl(); + /** + * + * + *
+   * The actual ddl code.
+   * 
+ * + * string ddl = 3; + * + * @return The bytes for ddl. + */ + com.google.protobuf.ByteString getDdlBytes(); + + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The enum numeric value on the wire for entityType. + */ + int getEntityTypeValue(); + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The entityType. + */ + com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType(); + + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @return A list containing the issueId. + */ + java.util.List getIssueIdList(); + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @return The count of issueId. + */ + int getIssueIdCount(); + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @param index The index of the element to return. + * @return The issueId at the given index. + */ + java.lang.String getIssueId(int index); + /** + * + * + *
+   * EntityIssues found for this ddl.
+   * 
+ * + * repeated string issue_id = 100; + * + * @param index The index of the value to return. + * @return The bytes of the issueId at the given index. + */ + com.google.protobuf.ByteString getIssueIdBytes(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityIssue.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityIssue.java new file mode 100644 index 000000000000..4c59bcf19d99 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityIssue.java @@ -0,0 +1,3159 @@ +/* + * 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; + +/** + * + * + *
+ * Issue related to the entity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityIssue} + */ +public final class EntityIssue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.EntityIssue) + EntityIssueOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityIssue.newBuilder() to construct. + private EntityIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityIssue() { + id_ = ""; + type_ = 0; + severity_ = 0; + message_ = ""; + code_ = ""; + ddl_ = ""; + entityType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityIssue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityIssue.class, + com.google.cloud.clouddms.v1.EntityIssue.Builder.class); + } + + /** + * + * + *
+   * Type of issue.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.EntityIssue.IssueType} + */ + public enum IssueType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified issue type.
+     * 
+ * + * ISSUE_TYPE_UNSPECIFIED = 0; + */ + ISSUE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Issue originated from the DDL
+     * 
+ * + * ISSUE_TYPE_DDL = 1; + */ + ISSUE_TYPE_DDL(1), + /** + * + * + *
+     * Issue originated during the apply process
+     * 
+ * + * ISSUE_TYPE_APPLY = 2; + */ + ISSUE_TYPE_APPLY(2), + /** + * + * + *
+     * Issue originated during the convert process
+     * 
+ * + * ISSUE_TYPE_CONVERT = 3; + */ + ISSUE_TYPE_CONVERT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified issue type.
+     * 
+ * + * ISSUE_TYPE_UNSPECIFIED = 0; + */ + public static final int ISSUE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Issue originated from the DDL
+     * 
+ * + * ISSUE_TYPE_DDL = 1; + */ + public static final int ISSUE_TYPE_DDL_VALUE = 1; + /** + * + * + *
+     * Issue originated during the apply process
+     * 
+ * + * ISSUE_TYPE_APPLY = 2; + */ + public static final int ISSUE_TYPE_APPLY_VALUE = 2; + /** + * + * + *
+     * Issue originated during the convert process
+     * 
+ * + * ISSUE_TYPE_CONVERT = 3; + */ + public static final int ISSUE_TYPE_CONVERT_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IssueType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IssueType forNumber(int value) { + switch (value) { + case 0: + return ISSUE_TYPE_UNSPECIFIED; + case 1: + return ISSUE_TYPE_DDL; + case 2: + return ISSUE_TYPE_APPLY; + case 3: + return ISSUE_TYPE_CONVERT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IssueType findValueByNumber(int number) { + return IssueType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.EntityIssue.getDescriptor().getEnumTypes().get(0); + } + + private static final IssueType[] VALUES = values(); + + public static IssueType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IssueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.EntityIssue.IssueType) + } + + /** + * + * + *
+   * Severity of issue.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.EntityIssue.IssueSeverity} + */ + public enum IssueSeverity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified issue severity
+     * 
+ * + * ISSUE_SEVERITY_UNSPECIFIED = 0; + */ + ISSUE_SEVERITY_UNSPECIFIED(0), + /** + * + * + *
+     * Info
+     * 
+ * + * ISSUE_SEVERITY_INFO = 1; + */ + ISSUE_SEVERITY_INFO(1), + /** + * + * + *
+     * Warning
+     * 
+ * + * ISSUE_SEVERITY_WARNING = 2; + */ + ISSUE_SEVERITY_WARNING(2), + /** + * + * + *
+     * Error
+     * 
+ * + * ISSUE_SEVERITY_ERROR = 3; + */ + ISSUE_SEVERITY_ERROR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified issue severity
+     * 
+ * + * ISSUE_SEVERITY_UNSPECIFIED = 0; + */ + public static final int ISSUE_SEVERITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Info
+     * 
+ * + * ISSUE_SEVERITY_INFO = 1; + */ + public static final int ISSUE_SEVERITY_INFO_VALUE = 1; + /** + * + * + *
+     * Warning
+     * 
+ * + * ISSUE_SEVERITY_WARNING = 2; + */ + public static final int ISSUE_SEVERITY_WARNING_VALUE = 2; + /** + * + * + *
+     * Error
+     * 
+ * + * ISSUE_SEVERITY_ERROR = 3; + */ + public static final int ISSUE_SEVERITY_ERROR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IssueSeverity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IssueSeverity forNumber(int value) { + switch (value) { + case 0: + return ISSUE_SEVERITY_UNSPECIFIED; + case 1: + return ISSUE_SEVERITY_INFO; + case 2: + return ISSUE_SEVERITY_WARNING; + case 3: + return ISSUE_SEVERITY_ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IssueSeverity findValueByNumber(int number) { + return IssueSeverity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.EntityIssue.getDescriptor().getEnumTypes().get(1); + } + + private static final IssueSeverity[] VALUES = values(); + + public static IssueSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IssueSeverity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.EntityIssue.IssueSeverity) + } + + public interface PositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.EntityIssue.Position) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Issue line number
+     * 
+ * + * int32 line = 1; + * + * @return The line. + */ + int getLine(); + + /** + * + * + *
+     * Issue column number
+     * 
+ * + * int32 column = 2; + * + * @return The column. + */ + int getColumn(); + + /** + * + * + *
+     * Issue offset
+     * 
+ * + * int32 offset = 3; + * + * @return The offset. + */ + int getOffset(); + + /** + * + * + *
+     * Issue length
+     * 
+ * + * int32 length = 4; + * + * @return The length. + */ + int getLength(); + } + /** + * + * + *
+   * Issue position.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityIssue.Position} + */ + public static final class Position extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.EntityIssue.Position) + PositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Position.newBuilder() to construct. + private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Position() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Position(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityIssue.Position.class, + com.google.cloud.clouddms.v1.EntityIssue.Position.Builder.class); + } + + public static final int LINE_FIELD_NUMBER = 1; + private int line_ = 0; + /** + * + * + *
+     * Issue line number
+     * 
+ * + * int32 line = 1; + * + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + public static final int COLUMN_FIELD_NUMBER = 2; + private int column_ = 0; + /** + * + * + *
+     * Issue column number
+     * 
+ * + * int32 column = 2; + * + * @return The column. + */ + @java.lang.Override + public int getColumn() { + return column_; + } + + public static final int OFFSET_FIELD_NUMBER = 3; + private int offset_ = 0; + /** + * + * + *
+     * Issue offset
+     * 
+ * + * int32 offset = 3; + * + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + + public static final int LENGTH_FIELD_NUMBER = 4; + private int length_ = 0; + /** + * + * + *
+     * Issue length
+     * 
+ * + * int32 length = 4; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + 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 (line_ != 0) { + output.writeInt32(1, line_); + } + if (column_ != 0) { + output.writeInt32(2, column_); + } + if (offset_ != 0) { + output.writeInt32(3, offset_); + } + if (length_ != 0) { + output.writeInt32(4, length_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (line_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, line_); + } + if (column_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, column_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, offset_); + } + if (length_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, length_); + } + 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.EntityIssue.Position)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.EntityIssue.Position other = + (com.google.cloud.clouddms.v1.EntityIssue.Position) obj; + + if (getLine() != other.getLine()) return false; + if (getColumn() != other.getColumn()) return false; + if (getOffset() != other.getOffset()) return false; + if (getLength() != other.getLength()) 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) + LINE_FIELD_NUMBER; + hash = (53 * hash) + getLine(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getLength(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.EntityIssue.Position parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityIssue.Position 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.EntityIssue.Position parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityIssue.Position 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.EntityIssue.Position parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityIssue.Position 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.EntityIssue.Position parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityIssue.Position 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.EntityIssue.Position parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityIssue.Position 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.EntityIssue.Position 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.EntityIssue.Position 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.EntityIssue.Position 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; + } + /** + * + * + *
+     * Issue position.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityIssue.Position} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.EntityIssue.Position) + com.google.cloud.clouddms.v1.EntityIssue.PositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityIssue.Position.class, + com.google.cloud.clouddms.v1.EntityIssue.Position.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.EntityIssue.Position.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + line_ = 0; + column_ = 0; + offset_ = 0; + length_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_Position_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.Position getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.EntityIssue.Position.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.Position build() { + com.google.cloud.clouddms.v1.EntityIssue.Position result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.Position buildPartial() { + com.google.cloud.clouddms.v1.EntityIssue.Position result = + new com.google.cloud.clouddms.v1.EntityIssue.Position(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.EntityIssue.Position result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.line_ = line_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.column_ = column_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.offset_ = offset_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.length_ = length_; + } + } + + @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.EntityIssue.Position) { + return mergeFrom((com.google.cloud.clouddms.v1.EntityIssue.Position) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.EntityIssue.Position other) { + if (other == com.google.cloud.clouddms.v1.EntityIssue.Position.getDefaultInstance()) + return this; + if (other.getLine() != 0) { + setLine(other.getLine()); + } + if (other.getColumn() != 0) { + setColumn(other.getColumn()); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getLength() != 0) { + setLength(other.getLength()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + line_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + column_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + offset_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int line_; + /** + * + * + *
+       * Issue line number
+       * 
+ * + * int32 line = 1; + * + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + /** + * + * + *
+       * Issue line number
+       * 
+ * + * int32 line = 1; + * + * @param value The line to set. + * @return This builder for chaining. + */ + public Builder setLine(int value) { + + line_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Issue line number
+       * 
+ * + * int32 line = 1; + * + * @return This builder for chaining. + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00000001); + line_ = 0; + onChanged(); + return this; + } + + private int column_; + /** + * + * + *
+       * Issue column number
+       * 
+ * + * int32 column = 2; + * + * @return The column. + */ + @java.lang.Override + public int getColumn() { + return column_; + } + /** + * + * + *
+       * Issue column number
+       * 
+ * + * int32 column = 2; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(int value) { + + column_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Issue column number
+       * 
+ * + * int32 column = 2; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + bitField0_ = (bitField0_ & ~0x00000002); + column_ = 0; + onChanged(); + return this; + } + + private int offset_; + /** + * + * + *
+       * Issue offset
+       * 
+ * + * int32 offset = 3; + * + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + /** + * + * + *
+       * Issue offset
+       * 
+ * + * int32 offset = 3; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(int value) { + + offset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Issue offset
+       * 
+ * + * int32 offset = 3; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000004); + offset_ = 0; + onChanged(); + return this; + } + + private int length_; + /** + * + * + *
+       * Issue length
+       * 
+ * + * int32 length = 4; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + /** + * + * + *
+       * Issue length
+       * 
+ * + * int32 length = 4; + * + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(int value) { + + length_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Issue length
+       * 
+ * + * int32 length = 4; + * + * @return This builder for chaining. + */ + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000008); + length_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.EntityIssue.Position) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.EntityIssue.Position) + private static final com.google.cloud.clouddms.v1.EntityIssue.Position DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.EntityIssue.Position(); + } + + public static com.google.cloud.clouddms.v1.EntityIssue.Position getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position 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.EntityIssue.Position getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
+   * Unique Issue ID.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * Unique Issue ID.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * + * + *
+   * The type of the issue.
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * The type of the issue.
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.IssueType getType() { + com.google.cloud.clouddms.v1.EntityIssue.IssueType result = + com.google.cloud.clouddms.v1.EntityIssue.IssueType.forNumber(type_); + return result == null + ? com.google.cloud.clouddms.v1.EntityIssue.IssueType.UNRECOGNIZED + : result; + } + + public static final int SEVERITY_FIELD_NUMBER = 3; + private int severity_ = 0; + /** + * + * + *
+   * Severity of the issue
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+   * Severity of the issue
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity getSeverity() { + com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity result = + com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity.forNumber(severity_); + return result == null + ? com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity.UNRECOGNIZED + : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
+   * Issue detailed message
+   * 
+ * + * string message = 4; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Issue detailed message
+   * 
+ * + * string message = 4; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + /** + * + * + *
+   * Error/Warning code
+   * 
+ * + * string code = 5; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + /** + * + * + *
+   * Error/Warning code
+   * 
+ * + * string code = 5; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DDL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object ddl_ = ""; + /** + * + * + *
+   * The ddl which caused the issue, if relevant.
+   * 
+ * + * optional string ddl = 6; + * + * @return Whether the ddl field is set. + */ + @java.lang.Override + public boolean hasDdl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The ddl which caused the issue, if relevant.
+   * 
+ * + * optional string ddl = 6; + * + * @return The ddl. + */ + @java.lang.Override + public java.lang.String getDdl() { + java.lang.Object ref = ddl_; + 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(); + ddl_ = s; + return s; + } + } + /** + * + * + *
+   * The ddl which caused the issue, if relevant.
+   * 
+ * + * optional string ddl = 6; + * + * @return The bytes for ddl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDdlBytes() { + java.lang.Object ref = ddl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ddl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSITION_FIELD_NUMBER = 7; + private com.google.cloud.clouddms.v1.EntityIssue.Position position_; + /** + * + * + *
+   * The position of the issue found, if relevant.
+   * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + * + * @return Whether the position field is set. + */ + @java.lang.Override + public boolean hasPosition() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The position of the issue found, if relevant.
+   * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + * + * @return The position. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.Position getPosition() { + return position_ == null + ? com.google.cloud.clouddms.v1.EntityIssue.Position.getDefaultInstance() + : position_; + } + /** + * + * + *
+   * The position of the issue found, if relevant.
+   * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.PositionOrBuilder getPositionOrBuilder() { + return position_ == null + ? com.google.cloud.clouddms.v1.EntityIssue.Position.getDefaultInstance() + : position_; + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 8; + private int entityType_ = 0; + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override + public int getEntityTypeValue() { + return entityType_; + } + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(entityType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (type_ + != com.google.cloud.clouddms.v1.EntityIssue.IssueType.ISSUE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (severity_ + != com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity.ISSUE_SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, code_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ddl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getPosition()); + } + if (entityType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, entityType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (type_ + != com.google.cloud.clouddms.v1.EntityIssue.IssueType.ISSUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (severity_ + != com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity.ISSUE_SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, code_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ddl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPosition()); + } + if (entityType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, entityType_); + } + 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.EntityIssue)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.EntityIssue other = (com.google.cloud.clouddms.v1.EntityIssue) obj; + + if (!getId().equals(other.getId())) return false; + if (type_ != other.type_) return false; + if (severity_ != other.severity_) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getCode().equals(other.getCode())) return false; + if (hasDdl() != other.hasDdl()) return false; + if (hasDdl()) { + if (!getDdl().equals(other.getDdl())) return false; + } + if (hasPosition() != other.hasPosition()) return false; + if (hasPosition()) { + if (!getPosition().equals(other.getPosition())) return false; + } + if (entityType_ != other.entityType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + if (hasDdl()) { + hash = (37 * hash) + DDL_FIELD_NUMBER; + hash = (53 * hash) + getDdl().hashCode(); + } + if (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition().hashCode(); + } + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + entityType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.EntityIssue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityIssue 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.EntityIssue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityIssue 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.EntityIssue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityIssue 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.EntityIssue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityIssue 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.EntityIssue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityIssue 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.EntityIssue 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.EntityIssue 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.EntityIssue 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; + } + /** + * + * + *
+   * Issue related to the entity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityIssue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.EntityIssue) + com.google.cloud.clouddms.v1.EntityIssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityIssue.class, + com.google.cloud.clouddms.v1.EntityIssue.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.EntityIssue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPositionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + type_ = 0; + severity_ = 0; + message_ = ""; + code_ = ""; + ddl_ = ""; + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; + } + entityType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityIssue_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.EntityIssue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue build() { + com.google.cloud.clouddms.v1.EntityIssue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue buildPartial() { + com.google.cloud.clouddms.v1.EntityIssue result = + new com.google.cloud.clouddms.v1.EntityIssue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.EntityIssue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.code_ = code_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ddl_ = ddl_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.position_ = positionBuilder_ == null ? position_ : positionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.entityType_ = entityType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.EntityIssue) { + return mergeFrom((com.google.cloud.clouddms.v1.EntityIssue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.EntityIssue other) { + if (other == com.google.cloud.clouddms.v1.EntityIssue.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDdl()) { + ddl_ = other.ddl_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasPosition()) { + mergePosition(other.getPosition()); + } + if (other.entityType_ != 0) { + setEntityTypeValue(other.getEntityTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + ddl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getPositionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + entityType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * Unique Issue ID.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Unique Issue ID.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Unique Issue ID.
+     * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Unique Issue ID.
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Unique Issue ID.
+     * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * The type of the issue.
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The type of the issue.
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the issue.
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.IssueType getType() { + com.google.cloud.clouddms.v1.EntityIssue.IssueType result = + com.google.cloud.clouddms.v1.EntityIssue.IssueType.forNumber(type_); + return result == null + ? com.google.cloud.clouddms.v1.EntityIssue.IssueType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of the issue.
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.clouddms.v1.EntityIssue.IssueType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the issue.
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private int severity_ = 0; + /** + * + * + *
+     * Severity of the issue
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+     * Severity of the issue
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Severity of the issue
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity getSeverity() { + com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity result = + com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity.forNumber(severity_); + return result == null + ? com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Severity of the issue
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Severity of the issue
+     * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000004); + severity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
+     * Issue detailed message
+     * 
+ * + * string message = 4; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Issue detailed message
+     * 
+ * + * string message = 4; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Issue detailed message
+     * 
+ * + * string message = 4; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Issue detailed message
+     * 
+ * + * string message = 4; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Issue detailed message
+     * 
+ * + * string message = 4; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object code_ = ""; + /** + * + * + *
+     * Error/Warning code
+     * 
+ * + * string code = 5; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Error/Warning code
+     * 
+ * + * string code = 5; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Error/Warning code
+     * 
+ * + * string code = 5; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Error/Warning code
+     * 
+ * + * string code = 5; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Error/Warning code
+     * 
+ * + * string code = 5; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object ddl_ = ""; + /** + * + * + *
+     * The ddl which caused the issue, if relevant.
+     * 
+ * + * optional string ddl = 6; + * + * @return Whether the ddl field is set. + */ + public boolean hasDdl() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * The ddl which caused the issue, if relevant.
+     * 
+ * + * optional string ddl = 6; + * + * @return The ddl. + */ + public java.lang.String getDdl() { + java.lang.Object ref = ddl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ddl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ddl which caused the issue, if relevant.
+     * 
+ * + * optional string ddl = 6; + * + * @return The bytes for ddl. + */ + public com.google.protobuf.ByteString getDdlBytes() { + java.lang.Object ref = ddl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ddl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ddl which caused the issue, if relevant.
+     * 
+ * + * optional string ddl = 6; + * + * @param value The ddl to set. + * @return This builder for chaining. + */ + public Builder setDdl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ddl_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * The ddl which caused the issue, if relevant.
+     * 
+ * + * optional string ddl = 6; + * + * @return This builder for chaining. + */ + public Builder clearDdl() { + ddl_ = getDefaultInstance().getDdl(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * The ddl which caused the issue, if relevant.
+     * 
+ * + * optional string ddl = 6; + * + * @param value The bytes for ddl to set. + * @return This builder for chaining. + */ + public Builder setDdlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ddl_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.EntityIssue.Position position_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityIssue.Position, + com.google.cloud.clouddms.v1.EntityIssue.Position.Builder, + com.google.cloud.clouddms.v1.EntityIssue.PositionOrBuilder> + positionBuilder_; + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + * + * @return Whether the position field is set. + */ + public boolean hasPosition() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + * + * @return The position. + */ + public com.google.cloud.clouddms.v1.EntityIssue.Position getPosition() { + if (positionBuilder_ == null) { + return position_ == null + ? com.google.cloud.clouddms.v1.EntityIssue.Position.getDefaultInstance() + : position_; + } else { + return positionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + public Builder setPosition(com.google.cloud.clouddms.v1.EntityIssue.Position value) { + if (positionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + } else { + positionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + public Builder setPosition( + com.google.cloud.clouddms.v1.EntityIssue.Position.Builder builderForValue) { + if (positionBuilder_ == null) { + position_ = builderForValue.build(); + } else { + positionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + public Builder mergePosition(com.google.cloud.clouddms.v1.EntityIssue.Position value) { + if (positionBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && position_ != null + && position_ + != com.google.cloud.clouddms.v1.EntityIssue.Position.getDefaultInstance()) { + getPositionBuilder().mergeFrom(value); + } else { + position_ = value; + } + } else { + positionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + public Builder clearPosition() { + bitField0_ = (bitField0_ & ~0x00000040); + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + public com.google.cloud.clouddms.v1.EntityIssue.Position.Builder getPositionBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + public com.google.cloud.clouddms.v1.EntityIssue.PositionOrBuilder getPositionOrBuilder() { + if (positionBuilder_ != null) { + return positionBuilder_.getMessageOrBuilder(); + } else { + return position_ == null + ? com.google.cloud.clouddms.v1.EntityIssue.Position.getDefaultInstance() + : position_; + } + } + /** + * + * + *
+     * The position of the issue found, if relevant.
+     * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityIssue.Position, + com.google.cloud.clouddms.v1.EntityIssue.Position.Builder, + com.google.cloud.clouddms.v1.EntityIssue.PositionOrBuilder> + getPositionFieldBuilder() { + if (positionBuilder_ == null) { + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityIssue.Position, + com.google.cloud.clouddms.v1.EntityIssue.Position.Builder, + com.google.cloud.clouddms.v1.EntityIssue.PositionOrBuilder>( + getPosition(), getParentForChildren(), isClean()); + position_ = null; + } + return positionBuilder_; + } + + private int entityType_ = 0; + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override + public int getEntityTypeValue() { + return entityType_; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @param value The enum numeric value on the wire for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeValue(int value) { + entityType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(entityType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(com.google.cloud.clouddms.v1.DatabaseEntityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + entityType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The entity type (if the DDL is for a sub entity).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + bitField0_ = (bitField0_ & ~0x00000080); + entityType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.EntityIssue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.EntityIssue) + private static final com.google.cloud.clouddms.v1.EntityIssue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.EntityIssue(); + } + + public static com.google.cloud.clouddms.v1.EntityIssue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityIssue 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.EntityIssue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityIssueOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityIssueOrBuilder.java new file mode 100644 index 000000000000..64d953bcb9c7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityIssueOrBuilder.java @@ -0,0 +1,247 @@ +/* + * 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 EntityIssueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.EntityIssue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Unique Issue ID.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * Unique Issue ID.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * The type of the issue.
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * The type of the issue.
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueType type = 2; + * + * @return The type. + */ + com.google.cloud.clouddms.v1.EntityIssue.IssueType getType(); + + /** + * + * + *
+   * Severity of the issue
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + * + * + *
+   * Severity of the issue
+   * 
+ * + * .google.cloud.clouddms.v1.EntityIssue.IssueSeverity severity = 3; + * + * @return The severity. + */ + com.google.cloud.clouddms.v1.EntityIssue.IssueSeverity getSeverity(); + + /** + * + * + *
+   * Issue detailed message
+   * 
+ * + * string message = 4; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Issue detailed message
+   * 
+ * + * string message = 4; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Error/Warning code
+   * 
+ * + * string code = 5; + * + * @return The code. + */ + java.lang.String getCode(); + /** + * + * + *
+   * Error/Warning code
+   * 
+ * + * string code = 5; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + + /** + * + * + *
+   * The ddl which caused the issue, if relevant.
+   * 
+ * + * optional string ddl = 6; + * + * @return Whether the ddl field is set. + */ + boolean hasDdl(); + /** + * + * + *
+   * The ddl which caused the issue, if relevant.
+   * 
+ * + * optional string ddl = 6; + * + * @return The ddl. + */ + java.lang.String getDdl(); + /** + * + * + *
+   * The ddl which caused the issue, if relevant.
+   * 
+ * + * optional string ddl = 6; + * + * @return The bytes for ddl. + */ + com.google.protobuf.ByteString getDdlBytes(); + + /** + * + * + *
+   * The position of the issue found, if relevant.
+   * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + * + * @return Whether the position field is set. + */ + boolean hasPosition(); + /** + * + * + *
+   * The position of the issue found, if relevant.
+   * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + * + * @return The position. + */ + com.google.cloud.clouddms.v1.EntityIssue.Position getPosition(); + /** + * + * + *
+   * The position of the issue found, if relevant.
+   * 
+ * + * optional .google.cloud.clouddms.v1.EntityIssue.Position position = 7; + */ + com.google.cloud.clouddms.v1.EntityIssue.PositionOrBuilder getPositionOrBuilder(); + + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @return The enum numeric value on the wire for entityType. + */ + int getEntityTypeValue(); + /** + * + * + *
+   * The entity type (if the DDL is for a sub entity).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 8; + * + * @return The entityType. + */ + com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMove.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMove.java new file mode 100644 index 000000000000..f2829b6b5447 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMove.java @@ -0,0 +1,634 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type EntityMove.
+ * The rule is used to move an entity to a new schema.
+ *
+ * The rule filter field can refer to one or more entities.
+ *
+ * The rule scope can be one of: Table, Column, Constraint, Index, View,
+ * Function, Stored Procedure, Materialized View, Sequence, UDT
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityMove} + */ +public final class EntityMove extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.EntityMove) + EntityMoveOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityMove.newBuilder() to construct. + private EntityMove(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityMove() { + newSchema_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityMove(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMove_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMove_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityMove.class, + com.google.cloud.clouddms.v1.EntityMove.Builder.class); + } + + public static final int NEW_SCHEMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object newSchema_ = ""; + /** + * + * + *
+   * Required. The new schema
+   * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newSchema. + */ + @java.lang.Override + public java.lang.String getNewSchema() { + java.lang.Object ref = newSchema_; + 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(); + newSchema_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The new schema
+   * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewSchemaBytes() { + java.lang.Object ref = newSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSchema_ = 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(newSchema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, newSchema_); + } + 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(newSchema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, newSchema_); + } + 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.EntityMove)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.EntityMove other = (com.google.cloud.clouddms.v1.EntityMove) obj; + + if (!getNewSchema().equals(other.getNewSchema())) 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) + NEW_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getNewSchema().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.EntityMove parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMove 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.EntityMove parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMove 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.EntityMove parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMove 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.EntityMove parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMove 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.EntityMove parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMove 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.EntityMove 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.EntityMove 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.EntityMove 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; + } + /** + * + * + *
+   * Options to configure rule type EntityMove.
+   * The rule is used to move an entity to a new schema.
+   *
+   * The rule filter field can refer to one or more entities.
+   *
+   * The rule scope can be one of: Table, Column, Constraint, Index, View,
+   * Function, Stored Procedure, Materialized View, Sequence, UDT
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityMove} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.EntityMove) + com.google.cloud.clouddms.v1.EntityMoveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMove_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMove_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityMove.class, + com.google.cloud.clouddms.v1.EntityMove.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.EntityMove.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + newSchema_ = ""; + 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_EntityMove_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMove getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMove build() { + com.google.cloud.clouddms.v1.EntityMove result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMove buildPartial() { + com.google.cloud.clouddms.v1.EntityMove result = + new com.google.cloud.clouddms.v1.EntityMove(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.EntityMove result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.newSchema_ = newSchema_; + } + } + + @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.EntityMove) { + return mergeFrom((com.google.cloud.clouddms.v1.EntityMove) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.EntityMove other) { + if (other == com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance()) return this; + if (!other.getNewSchema().isEmpty()) { + newSchema_ = other.newSchema_; + 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: + { + newSchema_ = 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 newSchema_ = ""; + /** + * + * + *
+     * Required. The new schema
+     * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newSchema. + */ + public java.lang.String getNewSchema() { + java.lang.Object ref = newSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The new schema
+     * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newSchema. + */ + public com.google.protobuf.ByteString getNewSchemaBytes() { + java.lang.Object ref = newSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The new schema
+     * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The newSchema to set. + * @return This builder for chaining. + */ + public Builder setNewSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newSchema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The new schema
+     * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNewSchema() { + newSchema_ = getDefaultInstance().getNewSchema(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The new schema
+     * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for newSchema to set. + * @return This builder for chaining. + */ + public Builder setNewSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newSchema_ = 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.EntityMove) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.EntityMove) + private static final com.google.cloud.clouddms.v1.EntityMove DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.EntityMove(); + } + + public static com.google.cloud.clouddms.v1.EntityMove getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityMove 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.EntityMove getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMoveOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMoveOrBuilder.java new file mode 100644 index 000000000000..0caeb9268c83 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMoveOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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 EntityMoveOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.EntityMove) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The new schema
+   * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newSchema. + */ + java.lang.String getNewSchema(); + /** + * + * + *
+   * Required. The new schema
+   * 
+ * + * string new_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newSchema. + */ + com.google.protobuf.ByteString getNewSchemaBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityNameTransformation.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityNameTransformation.java new file mode 100644 index 000000000000..14c4b069c53f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityNameTransformation.java @@ -0,0 +1,225 @@ +/* + * 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; + +/** + * + * + *
+ * Entity Name Transformation Types
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.EntityNameTransformation} + */ +public enum EntityNameTransformation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Entity name transformation unspecified.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_UNSPECIFIED = 0; + */ + ENTITY_NAME_TRANSFORMATION_UNSPECIFIED(0), + /** + * + * + *
+   * No transformation.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION = 1; + */ + ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION(1), + /** + * + * + *
+   * Transform to lower case.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_LOWER_CASE = 2; + */ + ENTITY_NAME_TRANSFORMATION_LOWER_CASE(2), + /** + * + * + *
+   * Transform to upper case.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_UPPER_CASE = 3; + */ + ENTITY_NAME_TRANSFORMATION_UPPER_CASE(3), + /** + * + * + *
+   * Transform to capitalized case.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE = 4; + */ + ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Entity name transformation unspecified.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_UNSPECIFIED = 0; + */ + public static final int ENTITY_NAME_TRANSFORMATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * No transformation.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION = 1; + */ + public static final int ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION_VALUE = 1; + /** + * + * + *
+   * Transform to lower case.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_LOWER_CASE = 2; + */ + public static final int ENTITY_NAME_TRANSFORMATION_LOWER_CASE_VALUE = 2; + /** + * + * + *
+   * Transform to upper case.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_UPPER_CASE = 3; + */ + public static final int ENTITY_NAME_TRANSFORMATION_UPPER_CASE_VALUE = 3; + /** + * + * + *
+   * Transform to capitalized case.
+   * 
+ * + * ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE = 4; + */ + public static final int ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntityNameTransformation valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EntityNameTransformation forNumber(int value) { + switch (value) { + case 0: + return ENTITY_NAME_TRANSFORMATION_UNSPECIFIED; + case 1: + return ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION; + case 2: + return ENTITY_NAME_TRANSFORMATION_LOWER_CASE; + case 3: + return ENTITY_NAME_TRANSFORMATION_UPPER_CASE; + case 4: + return ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EntityNameTransformation findValueByNumber(int number) { + return EntityNameTransformation.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final EntityNameTransformation[] VALUES = values(); + + public static EntityNameTransformation valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EntityNameTransformation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.EntityNameTransformation) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FilterTableColumns.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FilterTableColumns.java new file mode 100644 index 000000000000..d4073694e380 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FilterTableColumns.java @@ -0,0 +1,1012 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type FilterTableColumns.
+ * The rule is used to filter the list of columns to include or exclude from a
+ * table.
+ *
+ * The rule filter field can refer to one entity.
+ *
+ * The rule scope can be: Table
+ *
+ * Only one of the two lists can be specified for the rule.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FilterTableColumns} + */ +public final class FilterTableColumns extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.FilterTableColumns) + FilterTableColumnsOrBuilder { + private static final long serialVersionUID = 0L; + // Use FilterTableColumns.newBuilder() to construct. + private FilterTableColumns(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FilterTableColumns() { + includeColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FilterTableColumns(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FilterTableColumns_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FilterTableColumns_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FilterTableColumns.class, + com.google.cloud.clouddms.v1.FilterTableColumns.Builder.class); + } + + public static final int INCLUDE_COLUMNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeColumns. + */ + public com.google.protobuf.ProtocolStringList getIncludeColumnsList() { + return includeColumns_; + } + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeColumns. + */ + public int getIncludeColumnsCount() { + return includeColumns_.size(); + } + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeColumns at the given index. + */ + public java.lang.String getIncludeColumns(int index) { + return includeColumns_.get(index); + } + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeColumns at the given index. + */ + public com.google.protobuf.ByteString getIncludeColumnsBytes(int index) { + return includeColumns_.getByteString(index); + } + + public static final int EXCLUDE_COLUMNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeColumns. + */ + public com.google.protobuf.ProtocolStringList getExcludeColumnsList() { + return excludeColumns_; + } + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeColumns. + */ + public int getExcludeColumnsCount() { + return excludeColumns_.size(); + } + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeColumns at the given index. + */ + public java.lang.String getExcludeColumns(int index) { + return excludeColumns_.get(index); + } + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeColumns at the given index. + */ + public com.google.protobuf.ByteString getExcludeColumnsBytes(int index) { + return excludeColumns_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < includeColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, includeColumns_.getRaw(i)); + } + for (int i = 0; i < excludeColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, excludeColumns_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < includeColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(includeColumns_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeColumnsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeColumns_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeColumnsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.FilterTableColumns)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.FilterTableColumns other = + (com.google.cloud.clouddms.v1.FilterTableColumns) obj; + + if (!getIncludeColumnsList().equals(other.getIncludeColumnsList())) return false; + if (!getExcludeColumnsList().equals(other.getExcludeColumnsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIncludeColumnsCount() > 0) { + hash = (37 * hash) + INCLUDE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeColumnsList().hashCode(); + } + if (getExcludeColumnsCount() > 0) { + hash = (37 * hash) + EXCLUDE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeColumnsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.FilterTableColumns parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FilterTableColumns 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.FilterTableColumns parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FilterTableColumns 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.FilterTableColumns parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FilterTableColumns 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.FilterTableColumns parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FilterTableColumns 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.FilterTableColumns parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FilterTableColumns 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.FilterTableColumns 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.FilterTableColumns 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.FilterTableColumns 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; + } + /** + * + * + *
+   * Options to configure rule type FilterTableColumns.
+   * The rule is used to filter the list of columns to include or exclude from a
+   * table.
+   *
+   * The rule filter field can refer to one entity.
+   *
+   * The rule scope can be: Table
+   *
+   * Only one of the two lists can be specified for the rule.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FilterTableColumns} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.FilterTableColumns) + com.google.cloud.clouddms.v1.FilterTableColumnsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FilterTableColumns_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FilterTableColumns_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FilterTableColumns.class, + com.google.cloud.clouddms.v1.FilterTableColumns.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.FilterTableColumns.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_FilterTableColumns_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FilterTableColumns getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FilterTableColumns build() { + com.google.cloud.clouddms.v1.FilterTableColumns result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FilterTableColumns buildPartial() { + com.google.cloud.clouddms.v1.FilterTableColumns result = + new com.google.cloud.clouddms.v1.FilterTableColumns(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.FilterTableColumns result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + includeColumns_.makeImmutable(); + result.includeColumns_ = includeColumns_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludeColumns_.makeImmutable(); + result.excludeColumns_ = excludeColumns_; + } + } + + @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.FilterTableColumns) { + return mergeFrom((com.google.cloud.clouddms.v1.FilterTableColumns) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.FilterTableColumns other) { + if (other == com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance()) + return this; + if (!other.includeColumns_.isEmpty()) { + if (includeColumns_.isEmpty()) { + includeColumns_ = other.includeColumns_; + bitField0_ |= 0x00000001; + } else { + ensureIncludeColumnsIsMutable(); + includeColumns_.addAll(other.includeColumns_); + } + onChanged(); + } + if (!other.excludeColumns_.isEmpty()) { + if (excludeColumns_.isEmpty()) { + excludeColumns_ = other.excludeColumns_; + bitField0_ |= 0x00000002; + } else { + ensureExcludeColumnsIsMutable(); + excludeColumns_.addAll(other.excludeColumns_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeColumnsIsMutable(); + includeColumns_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeColumnsIsMutable(); + excludeColumns_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList includeColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeColumnsIsMutable() { + if (!includeColumns_.isModifiable()) { + includeColumns_ = new com.google.protobuf.LazyStringArrayList(includeColumns_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeColumns. + */ + public com.google.protobuf.ProtocolStringList getIncludeColumnsList() { + includeColumns_.makeImmutable(); + return includeColumns_; + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeColumns. + */ + public int getIncludeColumnsCount() { + return includeColumns_.size(); + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeColumns at the given index. + */ + public java.lang.String getIncludeColumns(int index) { + return includeColumns_.get(index); + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeColumns at the given index. + */ + public com.google.protobuf.ByteString getIncludeColumnsBytes(int index) { + return includeColumns_.getByteString(index); + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The includeColumns to set. + * @return This builder for chaining. + */ + public Builder setIncludeColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeColumnsIsMutable(); + includeColumns_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeColumns to add. + * @return This builder for chaining. + */ + public Builder addIncludeColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeColumnsIsMutable(); + includeColumns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The includeColumns to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeColumns(java.lang.Iterable values) { + ensureIncludeColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeColumns_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeColumns() { + includeColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be included for a particular table.
+     * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the includeColumns to add. + * @return This builder for chaining. + */ + public Builder addIncludeColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeColumnsIsMutable(); + includeColumns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeColumnsIsMutable() { + if (!excludeColumns_.isModifiable()) { + excludeColumns_ = new com.google.protobuf.LazyStringArrayList(excludeColumns_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeColumns. + */ + public com.google.protobuf.ProtocolStringList getExcludeColumnsList() { + excludeColumns_.makeImmutable(); + return excludeColumns_; + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeColumns. + */ + public int getExcludeColumnsCount() { + return excludeColumns_.size(); + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeColumns at the given index. + */ + public java.lang.String getExcludeColumns(int index) { + return excludeColumns_.get(index); + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeColumns at the given index. + */ + public com.google.protobuf.ByteString getExcludeColumnsBytes(int index) { + return excludeColumns_.getByteString(index); + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The excludeColumns to set. + * @return This builder for chaining. + */ + public Builder setExcludeColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeColumnsIsMutable(); + excludeColumns_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The excludeColumns to add. + * @return This builder for chaining. + */ + public Builder addExcludeColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeColumnsIsMutable(); + excludeColumns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The excludeColumns to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeColumns(java.lang.Iterable values) { + ensureExcludeColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeColumns_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExcludeColumns() { + excludeColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List of columns to be excluded for a particular table.
+     * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the excludeColumns to add. + * @return This builder for chaining. + */ + public Builder addExcludeColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeColumnsIsMutable(); + excludeColumns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.FilterTableColumns) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.FilterTableColumns) + private static final com.google.cloud.clouddms.v1.FilterTableColumns DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.FilterTableColumns(); + } + + public static com.google.cloud.clouddms.v1.FilterTableColumns getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilterTableColumns 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.FilterTableColumns getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FilterTableColumnsOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FilterTableColumnsOrBuilder.java new file mode 100644 index 000000000000..ff36c091e33a --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FilterTableColumnsOrBuilder.java @@ -0,0 +1,127 @@ +/* + * 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 FilterTableColumnsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.FilterTableColumns) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeColumns. + */ + java.util.List getIncludeColumnsList(); + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeColumns. + */ + int getIncludeColumnsCount(); + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeColumns at the given index. + */ + java.lang.String getIncludeColumns(int index); + /** + * + * + *
+   * Optional. List of columns to be included for a particular table.
+   * 
+ * + * repeated string include_columns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeColumns at the given index. + */ + com.google.protobuf.ByteString getIncludeColumnsBytes(int index); + + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeColumns. + */ + java.util.List getExcludeColumnsList(); + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeColumns. + */ + int getExcludeColumnsCount(); + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeColumns at the given index. + */ + java.lang.String getExcludeColumns(int index); + /** + * + * + *
+   * Optional. List of columns to be excluded for a particular table.
+   * 
+ * + * repeated string exclude_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeColumns at the given index. + */ + com.google.protobuf.ByteString getExcludeColumnsBytes(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateTcpProxyScriptRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateTcpProxyScriptRequest.java new file mode 100644 index 000000000000..c79d91cdff7d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateTcpProxyScriptRequest.java @@ -0,0 +1,1395 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'GenerateTcpProxyScript' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest} + */ +public final class GenerateTcpProxyScriptRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) + GenerateTcpProxyScriptRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateTcpProxyScriptRequest.newBuilder() to construct. + private GenerateTcpProxyScriptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateTcpProxyScriptRequest() { + migrationJob_ = ""; + vmName_ = ""; + vmMachineType_ = ""; + vmZone_ = ""; + vmSubnet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateTcpProxyScriptRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.class, + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.Builder.class); + } + + public static final int MIGRATION_JOB_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object migrationJob_ = ""; + /** + * + * + *
+   * Name of the migration job resource to generate the TCP Proxy script.
+   * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @return The migrationJob. + */ + @java.lang.Override + public java.lang.String getMigrationJob() { + java.lang.Object ref = migrationJob_; + 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(); + migrationJob_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the migration job resource to generate the TCP Proxy script.
+   * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for migrationJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMigrationJobBytes() { + java.lang.Object ref = migrationJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + migrationJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VM_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmName_ = ""; + /** + * + * + *
+   * Required. The name of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmName. + */ + @java.lang.Override + public java.lang.String getVmName() { + java.lang.Object ref = vmName_; + 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(); + vmName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmNameBytes() { + java.lang.Object ref = vmName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VM_MACHINE_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmMachineType_ = ""; + /** + * + * + *
+   * Required. The type of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmMachineType. + */ + @java.lang.Override + public java.lang.String getVmMachineType() { + java.lang.Object ref = vmMachineType_; + 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(); + vmMachineType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The type of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmMachineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmMachineTypeBytes() { + java.lang.Object ref = vmMachineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmMachineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VM_ZONE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmZone_ = ""; + /** + * + * + *
+   * Optional. The Google Cloud Platform zone to create the VM in. The fully
+   * qualified name of the zone must be specified, including the region name,
+   * for example "us-central1-b". If not specified, uses the "-b" zone of the
+   * destination Connection Profile's region.
+   * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vmZone. + */ + @java.lang.Override + public java.lang.String getVmZone() { + java.lang.Object ref = vmZone_; + 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(); + vmZone_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The Google Cloud Platform zone to create the VM in. The fully
+   * qualified name of the zone must be specified, including the region name,
+   * for example "us-central1-b". If not specified, uses the "-b" zone of the
+   * destination Connection Profile's region.
+   * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vmZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmZoneBytes() { + java.lang.Object ref = vmZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VM_SUBNET_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmSubnet_ = ""; + /** + * + * + *
+   * Required. The name of the subnet the Compute instance will use for private
+   * connectivity. Must be supplied in the form of
+   * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+   * Note: the region for the subnet must match the Compute instance region.
+   * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmSubnet. + */ + @java.lang.Override + public java.lang.String getVmSubnet() { + java.lang.Object ref = vmSubnet_; + 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(); + vmSubnet_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the subnet the Compute instance will use for private
+   * connectivity. Must be supplied in the form of
+   * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+   * Note: the region for the subnet must match the Compute instance region.
+   * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmSubnetBytes() { + java.lang.Object ref = vmSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmSubnet_ = 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(migrationJob_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, migrationJob_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmMachineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vmMachineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vmZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmSubnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, vmSubnet_); + } + 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(migrationJob_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, migrationJob_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmMachineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vmMachineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vmZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmSubnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, vmSubnet_); + } + 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.GenerateTcpProxyScriptRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest other = + (com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) obj; + + if (!getMigrationJob().equals(other.getMigrationJob())) return false; + if (!getVmName().equals(other.getVmName())) return false; + if (!getVmMachineType().equals(other.getVmMachineType())) return false; + if (!getVmZone().equals(other.getVmZone())) return false; + if (!getVmSubnet().equals(other.getVmSubnet())) 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) + MIGRATION_JOB_FIELD_NUMBER; + hash = (53 * hash) + getMigrationJob().hashCode(); + hash = (37 * hash) + VM_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVmName().hashCode(); + hash = (37 * hash) + VM_MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getVmMachineType().hashCode(); + hash = (37 * hash) + VM_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getVmZone().hashCode(); + hash = (37 * hash) + VM_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getVmSubnet().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for 'GenerateTcpProxyScript' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.class, + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + migrationJob_ = ""; + vmName_ = ""; + vmMachineType_ = ""; + vmZone_ = ""; + vmSubnet_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateTcpProxyScriptRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest build() { + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest buildPartial() { + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest result = + new com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.migrationJob_ = migrationJob_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vmName_ = vmName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vmMachineType_ = vmMachineType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vmZone_ = vmZone_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.vmSubnet_ = vmSubnet_; + } + } + + @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.GenerateTcpProxyScriptRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest other) { + if (other == com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.getDefaultInstance()) + return this; + if (!other.getMigrationJob().isEmpty()) { + migrationJob_ = other.migrationJob_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVmName().isEmpty()) { + vmName_ = other.vmName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVmMachineType().isEmpty()) { + vmMachineType_ = other.vmMachineType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVmZone().isEmpty()) { + vmZone_ = other.vmZone_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getVmSubnet().isEmpty()) { + vmSubnet_ = other.vmSubnet_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + migrationJob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + vmName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + vmMachineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + vmZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + vmSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object migrationJob_ = ""; + /** + * + * + *
+     * Name of the migration job resource to generate the TCP Proxy script.
+     * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @return The migrationJob. + */ + public java.lang.String getMigrationJob() { + java.lang.Object ref = migrationJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + migrationJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the migration job resource to generate the TCP Proxy script.
+     * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for migrationJob. + */ + public com.google.protobuf.ByteString getMigrationJobBytes() { + java.lang.Object ref = migrationJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + migrationJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the migration job resource to generate the TCP Proxy script.
+     * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The migrationJob to set. + * @return This builder for chaining. + */ + public Builder setMigrationJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + migrationJob_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the migration job resource to generate the TCP Proxy script.
+     * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearMigrationJob() { + migrationJob_ = getDefaultInstance().getMigrationJob(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the migration job resource to generate the TCP Proxy script.
+     * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for migrationJob to set. + * @return This builder for chaining. + */ + public Builder setMigrationJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + migrationJob_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object vmName_ = ""; + /** + * + * + *
+     * Required. The name of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmName. + */ + public java.lang.String getVmName() { + java.lang.Object ref = vmName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmName. + */ + public com.google.protobuf.ByteString getVmNameBytes() { + java.lang.Object ref = vmName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The vmName to set. + * @return This builder for chaining. + */ + public Builder setVmName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVmName() { + vmName_ = getDefaultInstance().getVmName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for vmName to set. + * @return This builder for chaining. + */ + public Builder setVmNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object vmMachineType_ = ""; + /** + * + * + *
+     * Required. The type of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmMachineType. + */ + public java.lang.String getVmMachineType() { + java.lang.Object ref = vmMachineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmMachineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The type of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmMachineType. + */ + public com.google.protobuf.ByteString getVmMachineTypeBytes() { + java.lang.Object ref = vmMachineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmMachineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The type of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The vmMachineType to set. + * @return This builder for chaining. + */ + public Builder setVmMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmMachineType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVmMachineType() { + vmMachineType_ = getDefaultInstance().getVmMachineType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type of the Compute instance that will host the proxy.
+     * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for vmMachineType to set. + * @return This builder for chaining. + */ + public Builder setVmMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmMachineType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object vmZone_ = ""; + /** + * + * + *
+     * Optional. The Google Cloud Platform zone to create the VM in. The fully
+     * qualified name of the zone must be specified, including the region name,
+     * for example "us-central1-b". If not specified, uses the "-b" zone of the
+     * destination Connection Profile's region.
+     * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vmZone. + */ + public java.lang.String getVmZone() { + java.lang.Object ref = vmZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone to create the VM in. The fully
+     * qualified name of the zone must be specified, including the region name,
+     * for example "us-central1-b". If not specified, uses the "-b" zone of the
+     * destination Connection Profile's region.
+     * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vmZone. + */ + public com.google.protobuf.ByteString getVmZoneBytes() { + java.lang.Object ref = vmZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone to create the VM in. The fully
+     * qualified name of the zone must be specified, including the region name,
+     * for example "us-central1-b". If not specified, uses the "-b" zone of the
+     * destination Connection Profile's region.
+     * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The vmZone to set. + * @return This builder for chaining. + */ + public Builder setVmZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmZone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone to create the VM in. The fully
+     * qualified name of the zone must be specified, including the region name,
+     * for example "us-central1-b". If not specified, uses the "-b" zone of the
+     * destination Connection Profile's region.
+     * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVmZone() { + vmZone_ = getDefaultInstance().getVmZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone to create the VM in. The fully
+     * qualified name of the zone must be specified, including the region name,
+     * for example "us-central1-b". If not specified, uses the "-b" zone of the
+     * destination Connection Profile's region.
+     * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for vmZone to set. + * @return This builder for chaining. + */ + public Builder setVmZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmZone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object vmSubnet_ = ""; + /** + * + * + *
+     * Required. The name of the subnet the Compute instance will use for private
+     * connectivity. Must be supplied in the form of
+     * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+     * Note: the region for the subnet must match the Compute instance region.
+     * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmSubnet. + */ + public java.lang.String getVmSubnet() { + java.lang.Object ref = vmSubnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmSubnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the subnet the Compute instance will use for private
+     * connectivity. Must be supplied in the form of
+     * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+     * Note: the region for the subnet must match the Compute instance region.
+     * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmSubnet. + */ + public com.google.protobuf.ByteString getVmSubnetBytes() { + java.lang.Object ref = vmSubnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the subnet the Compute instance will use for private
+     * connectivity. Must be supplied in the form of
+     * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+     * Note: the region for the subnet must match the Compute instance region.
+     * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The vmSubnet to set. + * @return This builder for chaining. + */ + public Builder setVmSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmSubnet_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the subnet the Compute instance will use for private
+     * connectivity. Must be supplied in the form of
+     * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+     * Note: the region for the subnet must match the Compute instance region.
+     * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVmSubnet() { + vmSubnet_ = getDefaultInstance().getVmSubnet(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the subnet the Compute instance will use for private
+     * connectivity. Must be supplied in the form of
+     * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+     * Note: the region for the subnet must match the Compute instance region.
+     * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for vmSubnet to set. + * @return This builder for chaining. + */ + public Builder setVmSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmSubnet_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) + private static final com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest(); + } + + public static com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateTcpProxyScriptRequest 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.GenerateTcpProxyScriptRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateTcpProxyScriptRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateTcpProxyScriptRequestOrBuilder.java new file mode 100644 index 000000000000..2c1fb840eb01 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateTcpProxyScriptRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GenerateTcpProxyScriptRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the migration job resource to generate the TCP Proxy script.
+   * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @return The migrationJob. + */ + java.lang.String getMigrationJob(); + /** + * + * + *
+   * Name of the migration job resource to generate the TCP Proxy script.
+   * 
+ * + * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for migrationJob. + */ + com.google.protobuf.ByteString getMigrationJobBytes(); + + /** + * + * + *
+   * Required. The name of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmName. + */ + java.lang.String getVmName(); + /** + * + * + *
+   * Required. The name of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmName. + */ + com.google.protobuf.ByteString getVmNameBytes(); + + /** + * + * + *
+   * Required. The type of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmMachineType. + */ + java.lang.String getVmMachineType(); + /** + * + * + *
+   * Required. The type of the Compute instance that will host the proxy.
+   * 
+ * + * string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmMachineType. + */ + com.google.protobuf.ByteString getVmMachineTypeBytes(); + + /** + * + * + *
+   * Optional. The Google Cloud Platform zone to create the VM in. The fully
+   * qualified name of the zone must be specified, including the region name,
+   * for example "us-central1-b". If not specified, uses the "-b" zone of the
+   * destination Connection Profile's region.
+   * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vmZone. + */ + java.lang.String getVmZone(); + /** + * + * + *
+   * Optional. The Google Cloud Platform zone to create the VM in. The fully
+   * qualified name of the zone must be specified, including the region name,
+   * for example "us-central1-b". If not specified, uses the "-b" zone of the
+   * destination Connection Profile's region.
+   * 
+ * + * string vm_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vmZone. + */ + com.google.protobuf.ByteString getVmZoneBytes(); + + /** + * + * + *
+   * Required. The name of the subnet the Compute instance will use for private
+   * connectivity. Must be supplied in the form of
+   * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+   * Note: the region for the subnet must match the Compute instance region.
+   * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmSubnet. + */ + java.lang.String getVmSubnet(); + /** + * + * + *
+   * Required. The name of the subnet the Compute instance will use for private
+   * connectivity. Must be supplied in the form of
+   * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
+   * Note: the region for the subnet must match the Compute instance region.
+   * 
+ * + * string vm_subnet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmSubnet. + */ + com.google.protobuf.ByteString getVmSubnetBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMappingRuleRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMappingRuleRequest.java new file mode 100644 index 000000000000..1cc676560e7b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMappingRuleRequest.java @@ -0,0 +1,680 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'GetMappingRule' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GetMappingRuleRequest} + */ +public final class GetMappingRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GetMappingRuleRequest) + GetMappingRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMappingRuleRequest.newBuilder() to construct. + private GetMappingRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMappingRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMappingRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GetMappingRuleRequest.class, + com.google.cloud.clouddms.v1.GetMappingRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.GetMappingRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.GetMappingRuleRequest other = + (com.google.cloud.clouddms.v1.GetMappingRuleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.GetMappingRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetMappingRuleRequest 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.GetMappingRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetMappingRuleRequest 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.GetMappingRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetMappingRuleRequest 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.GetMappingRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetMappingRuleRequest 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.GetMappingRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetMappingRuleRequest 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.GetMappingRuleRequest 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.GetMappingRuleRequest 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.GetMappingRuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for 'GetMappingRule' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GetMappingRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.GetMappingRuleRequest) + com.google.cloud.clouddms.v1.GetMappingRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GetMappingRuleRequest.class, + com.google.cloud.clouddms.v1.GetMappingRuleRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.GetMappingRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMappingRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetMappingRuleRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.GetMappingRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetMappingRuleRequest build() { + com.google.cloud.clouddms.v1.GetMappingRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetMappingRuleRequest buildPartial() { + com.google.cloud.clouddms.v1.GetMappingRuleRequest result = + new com.google.cloud.clouddms.v1.GetMappingRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.GetMappingRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.GetMappingRuleRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.GetMappingRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.GetMappingRuleRequest other) { + if (other == com.google.cloud.clouddms.v1.GetMappingRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GetMappingRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GetMappingRuleRequest) + private static final com.google.cloud.clouddms.v1.GetMappingRuleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GetMappingRuleRequest(); + } + + public static com.google.cloud.clouddms.v1.GetMappingRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMappingRuleRequest 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.GetMappingRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMappingRuleRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMappingRuleRequestOrBuilder.java new file mode 100644 index 000000000000..7e8b6ff2f928 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMappingRuleRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GetMappingRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetMappingRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequest.java index b54ecc520224..1882cdefa388 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequest.java @@ -73,12 +73,12 @@ public interface RulesFileOrBuilder * * *
-     * The filename of the rules that needs to be converted. The filename is
-     * used mainly so that future logs of the import rules job contain it, and
-     * can therefore be searched by it.
+     * Required. The filename of the rules that needs to be converted. The
+     * filename is used mainly so that future logs of the import rules job
+     * contain it, and can therefore be searched by it.
      * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The rulesSourceFilename. */ @@ -87,12 +87,12 @@ public interface RulesFileOrBuilder * * *
-     * The filename of the rules that needs to be converted. The filename is
-     * used mainly so that future logs of the import rules job contain it, and
-     * can therefore be searched by it.
+     * Required. The filename of the rules that needs to be converted. The
+     * filename is used mainly so that future logs of the import rules job
+     * contain it, and can therefore be searched by it.
      * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rulesSourceFilename. */ @@ -102,10 +102,10 @@ public interface RulesFileOrBuilder * * *
-     * The text content of the rules that needs to be converted.
+     * Required. The text content of the rules that needs to be converted.
      * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The rulesContent. */ @@ -114,10 +114,10 @@ public interface RulesFileOrBuilder * * *
-     * The text content of the rules that needs to be converted.
+     * Required. The text content of the rules that needs to be converted.
      * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rulesContent. */ @@ -176,12 +176,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The filename of the rules that needs to be converted. The filename is
-     * used mainly so that future logs of the import rules job contain it, and
-     * can therefore be searched by it.
+     * Required. The filename of the rules that needs to be converted. The
+     * filename is used mainly so that future logs of the import rules job
+     * contain it, and can therefore be searched by it.
      * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The rulesSourceFilename. */ @@ -201,12 +201,12 @@ public java.lang.String getRulesSourceFilename() { * * *
-     * The filename of the rules that needs to be converted. The filename is
-     * used mainly so that future logs of the import rules job contain it, and
-     * can therefore be searched by it.
+     * Required. The filename of the rules that needs to be converted. The
+     * filename is used mainly so that future logs of the import rules job
+     * contain it, and can therefore be searched by it.
      * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rulesSourceFilename. */ @@ -231,10 +231,10 @@ public com.google.protobuf.ByteString getRulesSourceFilenameBytes() { * * *
-     * The text content of the rules that needs to be converted.
+     * Required. The text content of the rules that needs to be converted.
      * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The rulesContent. */ @@ -254,10 +254,10 @@ public java.lang.String getRulesContent() { * * *
-     * The text content of the rules that needs to be converted.
+     * Required. The text content of the rules that needs to be converted.
      * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rulesContent. */ @@ -658,12 +658,12 @@ public Builder mergeFrom( * * *
-       * The filename of the rules that needs to be converted. The filename is
-       * used mainly so that future logs of the import rules job contain it, and
-       * can therefore be searched by it.
+       * Required. The filename of the rules that needs to be converted. The
+       * filename is used mainly so that future logs of the import rules job
+       * contain it, and can therefore be searched by it.
        * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The rulesSourceFilename. */ @@ -682,12 +682,12 @@ public java.lang.String getRulesSourceFilename() { * * *
-       * The filename of the rules that needs to be converted. The filename is
-       * used mainly so that future logs of the import rules job contain it, and
-       * can therefore be searched by it.
+       * Required. The filename of the rules that needs to be converted. The
+       * filename is used mainly so that future logs of the import rules job
+       * contain it, and can therefore be searched by it.
        * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rulesSourceFilename. */ @@ -706,12 +706,12 @@ public com.google.protobuf.ByteString getRulesSourceFilenameBytes() { * * *
-       * The filename of the rules that needs to be converted. The filename is
-       * used mainly so that future logs of the import rules job contain it, and
-       * can therefore be searched by it.
+       * Required. The filename of the rules that needs to be converted. The
+       * filename is used mainly so that future logs of the import rules job
+       * contain it, and can therefore be searched by it.
        * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The rulesSourceFilename to set. * @return This builder for chaining. @@ -729,12 +729,12 @@ public Builder setRulesSourceFilename(java.lang.String value) { * * *
-       * The filename of the rules that needs to be converted. The filename is
-       * used mainly so that future logs of the import rules job contain it, and
-       * can therefore be searched by it.
+       * Required. The filename of the rules that needs to be converted. The
+       * filename is used mainly so that future logs of the import rules job
+       * contain it, and can therefore be searched by it.
        * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -748,12 +748,12 @@ public Builder clearRulesSourceFilename() { * * *
-       * The filename of the rules that needs to be converted. The filename is
-       * used mainly so that future logs of the import rules job contain it, and
-       * can therefore be searched by it.
+       * Required. The filename of the rules that needs to be converted. The
+       * filename is used mainly so that future logs of the import rules job
+       * contain it, and can therefore be searched by it.
        * 
* - * string rules_source_filename = 1; + * string rules_source_filename = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for rulesSourceFilename to set. * @return This builder for chaining. @@ -774,10 +774,10 @@ public Builder setRulesSourceFilenameBytes(com.google.protobuf.ByteString value) * * *
-       * The text content of the rules that needs to be converted.
+       * Required. The text content of the rules that needs to be converted.
        * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The rulesContent. */ @@ -796,10 +796,10 @@ public java.lang.String getRulesContent() { * * *
-       * The text content of the rules that needs to be converted.
+       * Required. The text content of the rules that needs to be converted.
        * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for rulesContent. */ @@ -818,10 +818,10 @@ public com.google.protobuf.ByteString getRulesContentBytes() { * * *
-       * The text content of the rules that needs to be converted.
+       * Required. The text content of the rules that needs to be converted.
        * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The rulesContent to set. * @return This builder for chaining. @@ -839,10 +839,10 @@ public Builder setRulesContent(java.lang.String value) { * * *
-       * The text content of the rules that needs to be converted.
+       * Required. The text content of the rules that needs to be converted.
        * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -856,10 +856,10 @@ public Builder clearRulesContent() { * * *
-       * The text content of the rules that needs to be converted.
+       * Required. The text content of the rules that needs to be converted.
        * 
* - * string rules_content = 2; + * string rules_content = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for rulesContent to set. * @return This builder for chaining. @@ -1007,10 +1007,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The format of the rules content file.
+   * Required. The format of the rules content file.
    * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for rulesFormat. */ @@ -1022,10 +1024,12 @@ public int getRulesFormatValue() { * * *
-   * The format of the rules content file.
+   * Required. The format of the rules content file.
    * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The rulesFormat. */ @@ -1047,10 +1051,11 @@ public com.google.cloud.clouddms.v1.ImportRulesFileFormat getRulesFormat() { * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1062,10 +1067,11 @@ public com.google.cloud.clouddms.v1.ImportRulesFileFormat getRulesFormat() { * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1078,10 +1084,11 @@ public com.google.cloud.clouddms.v1.ImportRulesFileFormat getRulesFormat() { * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1092,10 +1099,11 @@ public int getRulesFilesCount() { * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1106,10 +1114,11 @@ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRules * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1124,11 +1133,11 @@ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRules * * *
-   * Should the conversion workspace be committed automatically after the
-   * import operation.
+   * Required. Should the conversion workspace be committed automatically after
+   * the import operation.
    * 
* - * bool auto_commit = 6; + * bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The autoCommit. */ @@ -1732,10 +1741,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The format of the rules content file.
+     * Required. The format of the rules content file.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for rulesFormat. */ @@ -1747,10 +1758,12 @@ public int getRulesFormatValue() { * * *
-     * The format of the rules content file.
+     * Required. The format of the rules content file.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The enum numeric value on the wire for rulesFormat to set. * @return This builder for chaining. @@ -1765,10 +1778,12 @@ public Builder setRulesFormatValue(int value) { * * *
-     * The format of the rules content file.
+     * Required. The format of the rules content file.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The rulesFormat. */ @@ -1784,10 +1799,12 @@ public com.google.cloud.clouddms.v1.ImportRulesFileFormat getRulesFormat() { * * *
-     * The format of the rules content file.
+     * Required. The format of the rules content file.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The rulesFormat to set. * @return This builder for chaining. @@ -1805,10 +1822,12 @@ public Builder setRulesFormat(com.google.cloud.clouddms.v1.ImportRulesFileFormat * * *
-     * The format of the rules content file.
+     * Required. The format of the rules content file.
      * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ @@ -1841,10 +1860,11 @@ private void ensureRulesFilesIsMutable() { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List @@ -1859,10 +1879,11 @@ private void ensureRulesFilesIsMutable() { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public int getRulesFilesCount() { @@ -1876,10 +1897,11 @@ public int getRulesFilesCount() { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRulesFiles( @@ -1894,10 +1916,11 @@ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRules * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setRulesFiles( @@ -1918,10 +1941,11 @@ public Builder setRulesFiles( * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setRulesFiles( @@ -1940,10 +1964,11 @@ public Builder setRulesFiles( * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRulesFiles( @@ -1964,10 +1989,11 @@ public Builder addRulesFiles( * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRulesFiles( @@ -1988,10 +2014,11 @@ public Builder addRulesFiles( * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRulesFiles( @@ -2009,10 +2036,11 @@ public Builder addRulesFiles( * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRulesFiles( @@ -2031,10 +2059,11 @@ public Builder addRulesFiles( * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAllRulesFiles( @@ -2054,10 +2083,11 @@ public Builder addAllRulesFiles( * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearRulesFiles() { @@ -2074,10 +2104,11 @@ public Builder clearRulesFiles() { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder removeRulesFiles(int index) { @@ -2094,10 +2125,11 @@ public Builder removeRulesFiles(int index) { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder @@ -2108,10 +2140,11 @@ public Builder removeRulesFiles(int index) { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder @@ -2126,10 +2159,11 @@ public Builder removeRulesFiles(int index) { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< @@ -2145,10 +2179,11 @@ public Builder removeRulesFiles(int index) { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder @@ -2162,10 +2197,11 @@ public Builder removeRulesFiles(int index) { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder @@ -2180,10 +2216,11 @@ public Builder removeRulesFiles(int index) { * * *
-     * One or more rules files.
+     * Required. One or more rules files.
      * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List @@ -2213,11 +2250,11 @@ public Builder removeRulesFiles(int index) { * * *
-     * Should the conversion workspace be committed automatically after the
-     * import operation.
+     * Required. Should the conversion workspace be committed automatically after
+     * the import operation.
      * 
* - * bool auto_commit = 6; + * bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The autoCommit. */ @@ -2229,11 +2266,11 @@ public boolean getAutoCommit() { * * *
-     * Should the conversion workspace be committed automatically after the
-     * import operation.
+     * Required. Should the conversion workspace be committed automatically after
+     * the import operation.
      * 
* - * bool auto_commit = 6; + * bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED]; * * @param value The autoCommit to set. * @return This builder for chaining. @@ -2249,11 +2286,11 @@ public Builder setAutoCommit(boolean value) { * * *
-     * Should the conversion workspace be committed automatically after the
-     * import operation.
+     * Required. Should the conversion workspace be committed automatically after
+     * the import operation.
      * 
* - * bool auto_commit = 6; + * bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequestOrBuilder.java index 37a645b88d43..f239942c85a6 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequestOrBuilder.java @@ -60,10 +60,12 @@ public interface ImportMappingRulesRequestOrBuilder * * *
-   * The format of the rules content file.
+   * Required. The format of the rules content file.
    * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for rulesFormat. */ @@ -72,10 +74,12 @@ public interface ImportMappingRulesRequestOrBuilder * * *
-   * The format of the rules content file.
+   * Required. The format of the rules content file.
    * 
* - * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The rulesFormat. */ @@ -85,10 +89,11 @@ public interface ImportMappingRulesRequestOrBuilder * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ java.util.List @@ -97,10 +102,11 @@ public interface ImportMappingRulesRequestOrBuilder * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRulesFiles(int index); @@ -108,10 +114,11 @@ public interface ImportMappingRulesRequestOrBuilder * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ int getRulesFilesCount(); @@ -119,10 +126,11 @@ public interface ImportMappingRulesRequestOrBuilder * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ java.util.List< @@ -132,10 +140,11 @@ public interface ImportMappingRulesRequestOrBuilder * * *
-   * One or more rules files.
+   * Required. One or more rules files.
    * 
* - * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder getRulesFilesOrBuilder( @@ -145,11 +154,11 @@ com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder getRul * * *
-   * Should the conversion workspace be committed automatically after the
-   * import operation.
+   * Required. Should the conversion workspace be committed automatically after
+   * the import operation.
    * 
* - * bool auto_commit = 6; + * bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The autoCommit. */ diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportRulesFileFormat.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportRulesFileFormat.java index cb473c80cbe0..49d386da6a00 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportRulesFileFormat.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportRulesFileFormat.java @@ -155,7 +155,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() .getEnumTypes() - .get(2); + .get(4); } private static final ImportRulesFileFormat[] VALUES = values(); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IntComparisonFilter.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IntComparisonFilter.java new file mode 100644 index 000000000000..e6ab9d9658da --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IntComparisonFilter.java @@ -0,0 +1,701 @@ +/* + * 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; + +/** + * + * + *
+ * Filter based on relation between source value and compare value of type
+ * integer in ConditionalColumnSetValue
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.IntComparisonFilter} + */ +public final class IntComparisonFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.IntComparisonFilter) + IntComparisonFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntComparisonFilter.newBuilder() to construct. + private IntComparisonFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IntComparisonFilter() { + valueComparison_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IntComparisonFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IntComparisonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IntComparisonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.IntComparisonFilter.class, + com.google.cloud.clouddms.v1.IntComparisonFilter.Builder.class); + } + + public static final int VALUE_COMPARISON_FIELD_NUMBER = 1; + private int valueComparison_ = 0; + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valueComparison. + */ + @java.lang.Override + public int getValueComparisonValue() { + return valueComparison_; + } + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueComparison getValueComparison() { + com.google.cloud.clouddms.v1.ValueComparison result = + com.google.cloud.clouddms.v1.ValueComparison.forNumber(valueComparison_); + return result == null ? com.google.cloud.clouddms.v1.ValueComparison.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private long value_ = 0L; + /** + * + * + *
+   * Required. Integer compare value to be used
+   * 
+ * + * int64 value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public long getValue() { + return value_; + } + + 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 (valueComparison_ + != com.google.cloud.clouddms.v1.ValueComparison.VALUE_COMPARISON_UNSPECIFIED.getNumber()) { + output.writeEnum(1, valueComparison_); + } + if (value_ != 0L) { + output.writeInt64(2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueComparison_ + != com.google.cloud.clouddms.v1.ValueComparison.VALUE_COMPARISON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, valueComparison_); + } + if (value_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, 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.IntComparisonFilter)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.IntComparisonFilter other = + (com.google.cloud.clouddms.v1.IntComparisonFilter) obj; + + if (valueComparison_ != other.valueComparison_) return false; + if (getValue() != 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_COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + valueComparison_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValue()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.IntComparisonFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.IntComparisonFilter 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.IntComparisonFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.IntComparisonFilter 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.IntComparisonFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.IntComparisonFilter 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.IntComparisonFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.IntComparisonFilter 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.IntComparisonFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.IntComparisonFilter 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.IntComparisonFilter 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.IntComparisonFilter 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.IntComparisonFilter 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; + } + /** + * + * + *
+   * Filter based on relation between source value and compare value of type
+   * integer in ConditionalColumnSetValue
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.IntComparisonFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.IntComparisonFilter) + com.google.cloud.clouddms.v1.IntComparisonFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IntComparisonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IntComparisonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.IntComparisonFilter.class, + com.google.cloud.clouddms.v1.IntComparisonFilter.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.IntComparisonFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + valueComparison_ = 0; + value_ = 0L; + 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_IntComparisonFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.IntComparisonFilter getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.IntComparisonFilter build() { + com.google.cloud.clouddms.v1.IntComparisonFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.IntComparisonFilter buildPartial() { + com.google.cloud.clouddms.v1.IntComparisonFilter result = + new com.google.cloud.clouddms.v1.IntComparisonFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.IntComparisonFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.valueComparison_ = valueComparison_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.IntComparisonFilter) { + return mergeFrom((com.google.cloud.clouddms.v1.IntComparisonFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.IntComparisonFilter other) { + if (other == com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance()) + return this; + if (other.valueComparison_ != 0) { + setValueComparisonValue(other.getValueComparisonValue()); + } + if (other.getValue() != 0L) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + valueComparison_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + value_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int valueComparison_ = 0; + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valueComparison. + */ + @java.lang.Override + public int getValueComparisonValue() { + return valueComparison_; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for valueComparison to set. + * @return This builder for chaining. + */ + public Builder setValueComparisonValue(int value) { + valueComparison_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueComparison getValueComparison() { + com.google.cloud.clouddms.v1.ValueComparison result = + com.google.cloud.clouddms.v1.ValueComparison.forNumber(valueComparison_); + return result == null ? com.google.cloud.clouddms.v1.ValueComparison.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The valueComparison to set. + * @return This builder for chaining. + */ + public Builder setValueComparison(com.google.cloud.clouddms.v1.ValueComparison value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + valueComparison_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Relation between source value and compare value
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearValueComparison() { + bitField0_ = (bitField0_ & ~0x00000001); + valueComparison_ = 0; + onChanged(); + return this; + } + + private long value_; + /** + * + * + *
+     * Required. Integer compare value to be used
+     * 
+ * + * int64 value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public long getValue() { + return value_; + } + /** + * + * + *
+     * Required. Integer compare value to be used
+     * 
+ * + * int64 value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(long value) { + + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Integer compare value to be used
+     * 
+ * + * int64 value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = 0L; + 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.IntComparisonFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.IntComparisonFilter) + private static final com.google.cloud.clouddms.v1.IntComparisonFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.IntComparisonFilter(); + } + + public static com.google.cloud.clouddms.v1.IntComparisonFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntComparisonFilter 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.IntComparisonFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IntComparisonFilterOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IntComparisonFilterOrBuilder.java new file mode 100644 index 000000000000..7f5880fc9efd --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IntComparisonFilterOrBuilder.java @@ -0,0 +1,67 @@ +/* + * 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 IntComparisonFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.IntComparisonFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valueComparison. + */ + int getValueComparisonValue(); + /** + * + * + *
+   * Required. Relation between source value and compare value
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueComparison value_comparison = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valueComparison. + */ + com.google.cloud.clouddms.v1.ValueComparison getValueComparison(); + + /** + * + * + *
+   * Required. Integer compare value to be used
+   * 
+ * + * int64 value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + long getValue(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesRequest.java new file mode 100644 index 000000000000..48fd9399715e --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesRequest.java @@ -0,0 +1,959 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Retrieve a list of all mapping rules in a given conversion workspace.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListMappingRulesRequest} + */ +public final class ListMappingRulesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListMappingRulesRequest) + ListMappingRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMappingRulesRequest.newBuilder() to construct. + private ListMappingRulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMappingRulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMappingRulesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListMappingRulesRequest.class, + com.google.cloud.clouddms.v1.ListMappingRulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose mapping rules are
+   * listed in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose mapping rules are
+   * listed in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of rules to return. The service may return
+   * fewer than this value.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * mappingRules.list, used in the subsequent request to retrieve the next
+   * page of results. On first call this should be left blank. When paginating,
+   * all other parameters provided to mappingRules.list must match the call
+   * that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * mappingRules.list, used in the subsequent request to retrieve the next
+   * page of results. On first call this should be left blank. When paginating,
+   * all other parameters provided to mappingRules.list must match the call
+   * that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.ListMappingRulesRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ListMappingRulesRequest other = + (com.google.cloud.clouddms.v1.ListMappingRulesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesRequest 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.ListMappingRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesRequest 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.ListMappingRulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesRequest 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.ListMappingRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesRequest 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.ListMappingRulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesRequest 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.ListMappingRulesRequest 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.ListMappingRulesRequest 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.ListMappingRulesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Retrieve a list of all mapping rules in a given conversion workspace.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListMappingRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ListMappingRulesRequest) + com.google.cloud.clouddms.v1.ListMappingRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListMappingRulesRequest.class, + com.google.cloud.clouddms.v1.ListMappingRulesRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ListMappingRulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListMappingRulesRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ListMappingRulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListMappingRulesRequest build() { + com.google.cloud.clouddms.v1.ListMappingRulesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListMappingRulesRequest buildPartial() { + com.google.cloud.clouddms.v1.ListMappingRulesRequest result = + new com.google.cloud.clouddms.v1.ListMappingRulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ListMappingRulesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.ListMappingRulesRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.ListMappingRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMappingRulesRequest other) { + if (other == com.google.cloud.clouddms.v1.ListMappingRulesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose mapping rules are
+     * listed in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose mapping rules are
+     * listed in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose mapping rules are
+     * listed in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose mapping rules are
+     * listed in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose mapping rules are
+     * listed in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of rules to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of rules to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of rules to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * mappingRules.list, used in the subsequent request to retrieve the next
+     * page of results. On first call this should be left blank. When paginating,
+     * all other parameters provided to mappingRules.list must match the call
+     * that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * mappingRules.list, used in the subsequent request to retrieve the next
+     * page of results. On first call this should be left blank. When paginating,
+     * all other parameters provided to mappingRules.list must match the call
+     * that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * mappingRules.list, used in the subsequent request to retrieve the next
+     * page of results. On first call this should be left blank. When paginating,
+     * all other parameters provided to mappingRules.list must match the call
+     * that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * mappingRules.list, used in the subsequent request to retrieve the next
+     * page of results. On first call this should be left blank. When paginating,
+     * all other parameters provided to mappingRules.list must match the call
+     * that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * mappingRules.list, used in the subsequent request to retrieve the next
+     * page of results. On first call this should be left blank. When paginating,
+     * all other parameters provided to mappingRules.list must match the call
+     * that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @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.ListMappingRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListMappingRulesRequest) + private static final com.google.cloud.clouddms.v1.ListMappingRulesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListMappingRulesRequest(); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMappingRulesRequest 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.ListMappingRulesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesRequestOrBuilder.java new file mode 100644 index 000000000000..4adf6b8d1ea9 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ListMappingRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListMappingRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose mapping rules are
+   * listed in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose mapping rules are
+   * listed in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of rules to return. The service may return
+   * fewer than this value.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * mappingRules.list, used in the subsequent request to retrieve the next
+   * page of results. On first call this should be left blank. When paginating,
+   * all other parameters provided to mappingRules.list must match the call
+   * that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * mappingRules.list, used in the subsequent request to retrieve the next
+   * page of results. On first call this should be left blank. When paginating,
+   * all other parameters provided to mappingRules.list must match the call
+   * that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesResponse.java new file mode 100644 index 000000000000..64de2241614b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesResponse.java @@ -0,0 +1,1127 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for 'ListMappingRulesRequest' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListMappingRulesResponse} + */ +public final class ListMappingRulesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListMappingRulesResponse) + ListMappingRulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMappingRulesResponse.newBuilder() to construct. + private ListMappingRulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMappingRulesResponse() { + mappingRules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMappingRulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListMappingRulesResponse.class, + com.google.cloud.clouddms.v1.ListMappingRulesResponse.Builder.class); + } + + public static final int MAPPING_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mappingRules_; + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + @java.lang.Override + public java.util.List getMappingRulesList() { + return mappingRules_; + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + @java.lang.Override + public java.util.List + getMappingRulesOrBuilderList() { + return mappingRules_; + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + @java.lang.Override + public int getMappingRulesCount() { + return mappingRules_.size(); + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRule getMappingRules(int index) { + return mappingRules_.get(index); + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRuleOrBuilder getMappingRulesOrBuilder(int index) { + return mappingRules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < mappingRules_.size(); i++) { + output.writeMessage(1, mappingRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mappingRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mappingRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ListMappingRulesResponse)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ListMappingRulesResponse other = + (com.google.cloud.clouddms.v1.ListMappingRulesResponse) obj; + + if (!getMappingRulesList().equals(other.getMappingRulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMappingRulesCount() > 0) { + hash = (37 * hash) + MAPPING_RULES_FIELD_NUMBER; + hash = (53 * hash) + getMappingRulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesResponse 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.ListMappingRulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesResponse 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.ListMappingRulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesResponse 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.ListMappingRulesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesResponse 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.ListMappingRulesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesResponse 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.ListMappingRulesResponse 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.ListMappingRulesResponse 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.ListMappingRulesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for 'ListMappingRulesRequest' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListMappingRulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ListMappingRulesResponse) + com.google.cloud.clouddms.v1.ListMappingRulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListMappingRulesResponse.class, + com.google.cloud.clouddms.v1.ListMappingRulesResponse.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ListMappingRulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mappingRulesBuilder_ == null) { + mappingRules_ = java.util.Collections.emptyList(); + } else { + mappingRules_ = null; + mappingRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMappingRulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListMappingRulesResponse getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ListMappingRulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListMappingRulesResponse build() { + com.google.cloud.clouddms.v1.ListMappingRulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListMappingRulesResponse buildPartial() { + com.google.cloud.clouddms.v1.ListMappingRulesResponse result = + new com.google.cloud.clouddms.v1.ListMappingRulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.ListMappingRulesResponse result) { + if (mappingRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mappingRules_ = java.util.Collections.unmodifiableList(mappingRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mappingRules_ = mappingRules_; + } else { + result.mappingRules_ = mappingRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ListMappingRulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.ListMappingRulesResponse) { + return mergeFrom((com.google.cloud.clouddms.v1.ListMappingRulesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMappingRulesResponse other) { + if (other == com.google.cloud.clouddms.v1.ListMappingRulesResponse.getDefaultInstance()) + return this; + if (mappingRulesBuilder_ == null) { + if (!other.mappingRules_.isEmpty()) { + if (mappingRules_.isEmpty()) { + mappingRules_ = other.mappingRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMappingRulesIsMutable(); + mappingRules_.addAll(other.mappingRules_); + } + onChanged(); + } + } else { + if (!other.mappingRules_.isEmpty()) { + if (mappingRulesBuilder_.isEmpty()) { + mappingRulesBuilder_.dispose(); + mappingRulesBuilder_ = null; + mappingRules_ = other.mappingRules_; + bitField0_ = (bitField0_ & ~0x00000001); + mappingRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMappingRulesFieldBuilder() + : null; + } else { + mappingRulesBuilder_.addAllMessages(other.mappingRules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.MappingRule m = + input.readMessage( + com.google.cloud.clouddms.v1.MappingRule.parser(), extensionRegistry); + if (mappingRulesBuilder_ == null) { + ensureMappingRulesIsMutable(); + mappingRules_.add(m); + } else { + mappingRulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List mappingRules_ = + java.util.Collections.emptyList(); + + private void ensureMappingRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mappingRules_ = + new java.util.ArrayList(mappingRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRule, + com.google.cloud.clouddms.v1.MappingRule.Builder, + com.google.cloud.clouddms.v1.MappingRuleOrBuilder> + mappingRulesBuilder_; + + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public java.util.List getMappingRulesList() { + if (mappingRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(mappingRules_); + } else { + return mappingRulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public int getMappingRulesCount() { + if (mappingRulesBuilder_ == null) { + return mappingRules_.size(); + } else { + return mappingRulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public com.google.cloud.clouddms.v1.MappingRule getMappingRules(int index) { + if (mappingRulesBuilder_ == null) { + return mappingRules_.get(index); + } else { + return mappingRulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder setMappingRules(int index, com.google.cloud.clouddms.v1.MappingRule value) { + if (mappingRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingRulesIsMutable(); + mappingRules_.set(index, value); + onChanged(); + } else { + mappingRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder setMappingRules( + int index, com.google.cloud.clouddms.v1.MappingRule.Builder builderForValue) { + if (mappingRulesBuilder_ == null) { + ensureMappingRulesIsMutable(); + mappingRules_.set(index, builderForValue.build()); + onChanged(); + } else { + mappingRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder addMappingRules(com.google.cloud.clouddms.v1.MappingRule value) { + if (mappingRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingRulesIsMutable(); + mappingRules_.add(value); + onChanged(); + } else { + mappingRulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder addMappingRules(int index, com.google.cloud.clouddms.v1.MappingRule value) { + if (mappingRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingRulesIsMutable(); + mappingRules_.add(index, value); + onChanged(); + } else { + mappingRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder addMappingRules( + com.google.cloud.clouddms.v1.MappingRule.Builder builderForValue) { + if (mappingRulesBuilder_ == null) { + ensureMappingRulesIsMutable(); + mappingRules_.add(builderForValue.build()); + onChanged(); + } else { + mappingRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder addMappingRules( + int index, com.google.cloud.clouddms.v1.MappingRule.Builder builderForValue) { + if (mappingRulesBuilder_ == null) { + ensureMappingRulesIsMutable(); + mappingRules_.add(index, builderForValue.build()); + onChanged(); + } else { + mappingRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder addAllMappingRules( + java.lang.Iterable values) { + if (mappingRulesBuilder_ == null) { + ensureMappingRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mappingRules_); + onChanged(); + } else { + mappingRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder clearMappingRules() { + if (mappingRulesBuilder_ == null) { + mappingRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mappingRulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public Builder removeMappingRules(int index) { + if (mappingRulesBuilder_ == null) { + ensureMappingRulesIsMutable(); + mappingRules_.remove(index); + onChanged(); + } else { + mappingRulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public com.google.cloud.clouddms.v1.MappingRule.Builder getMappingRulesBuilder(int index) { + return getMappingRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public com.google.cloud.clouddms.v1.MappingRuleOrBuilder getMappingRulesOrBuilder(int index) { + if (mappingRulesBuilder_ == null) { + return mappingRules_.get(index); + } else { + return mappingRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public java.util.List + getMappingRulesOrBuilderList() { + if (mappingRulesBuilder_ != null) { + return mappingRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mappingRules_); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public com.google.cloud.clouddms.v1.MappingRule.Builder addMappingRulesBuilder() { + return getMappingRulesFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public com.google.cloud.clouddms.v1.MappingRule.Builder addMappingRulesBuilder(int index) { + return getMappingRulesFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + public java.util.List + getMappingRulesBuilderList() { + return getMappingRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRule, + com.google.cloud.clouddms.v1.MappingRule.Builder, + com.google.cloud.clouddms.v1.MappingRuleOrBuilder> + getMappingRulesFieldBuilder() { + if (mappingRulesBuilder_ == null) { + mappingRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRule, + com.google.cloud.clouddms.v1.MappingRule.Builder, + com.google.cloud.clouddms.v1.MappingRuleOrBuilder>( + mappingRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + mappingRules_ = null; + } + return mappingRulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListMappingRulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListMappingRulesResponse) + private static final com.google.cloud.clouddms.v1.ListMappingRulesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListMappingRulesResponse(); + } + + public static com.google.cloud.clouddms.v1.ListMappingRulesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMappingRulesResponse 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.ListMappingRulesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesResponseOrBuilder.java new file mode 100644 index 000000000000..d45343fdb7ab --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMappingRulesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ListMappingRulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListMappingRulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + java.util.List getMappingRulesList(); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + com.google.cloud.clouddms.v1.MappingRule getMappingRules(int index); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + int getMappingRulesCount(); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + java.util.List + getMappingRulesOrBuilderList(); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.MappingRule mapping_rules = 1; + */ + com.google.cloud.clouddms.v1.MappingRuleOrBuilder getMappingRulesOrBuilder(int index); + + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRule.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRule.java new file mode 100644 index 000000000000..55d0e10760bb --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRule.java @@ -0,0 +1,5903 @@ +/* + * 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; + +/** + * + * + *
+ * Definition of a transformation that is to be applied to a group of entities
+ * in the source schema. Several such transformations can be applied to an
+ * entity sequentially to define the corresponding entity in the target schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MappingRule} + */ +public final class MappingRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MappingRule) + MappingRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use MappingRule.newBuilder() to construct. + private MappingRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MappingRule() { + name_ = ""; + displayName_ = ""; + state_ = 0; + ruleScope_ = 0; + revisionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MappingRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MappingRule.class, + com.google.cloud.clouddms.v1.MappingRule.Builder.class); + } + + /** + * + * + *
+   * The current mapping rule state such as enabled, disabled or deleted.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.MappingRule.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state of the mapping rule is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The rule is enabled.
+     * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+     * The rule is disabled.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + /** + * + * + *
+     * The rule is logically deleted.
+     * 
+ * + * DELETED = 3; + */ + DELETED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The state of the mapping rule is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The rule is enabled.
+     * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + /** + * + * + *
+     * The rule is disabled.
+     * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_VALUE = 2; + /** + * + * + *
+     * The rule is logically deleted.
+     * 
+ * + * DELETED = 3; + */ + public static final int DELETED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + case 3: + return DELETED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.MappingRule.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.MappingRule.State) + } + + private int detailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object details_; + + public enum DetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SINGLE_ENTITY_RENAME(102), + MULTI_ENTITY_RENAME(103), + ENTITY_MOVE(105), + SINGLE_COLUMN_CHANGE(106), + MULTI_COLUMN_DATA_TYPE_CHANGE(107), + CONDITIONAL_COLUMN_SET_VALUE(108), + CONVERT_ROWID_COLUMN(114), + SET_TABLE_PRIMARY_KEY(115), + SINGLE_PACKAGE_CHANGE(116), + SOURCE_SQL_CHANGE(117), + FILTER_TABLE_COLUMNS(118), + DETAILS_NOT_SET(0); + private final int value; + + private DetailsCase(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 DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 102: + return SINGLE_ENTITY_RENAME; + case 103: + return MULTI_ENTITY_RENAME; + case 105: + return ENTITY_MOVE; + case 106: + return SINGLE_COLUMN_CHANGE; + case 107: + return MULTI_COLUMN_DATA_TYPE_CHANGE; + case 108: + return CONDITIONAL_COLUMN_SET_VALUE; + case 114: + return CONVERT_ROWID_COLUMN; + case 115: + return SET_TABLE_PRIMARY_KEY; + case 116: + return SINGLE_PACKAGE_CHANGE; + case 117: + return SOURCE_SQL_CHANGE; + case 118: + return FILTER_TABLE_COLUMNS; + case 0: + return DETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Full name of the mapping rule resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Full name of the mapping rule resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. A human readable name
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A human readable name
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
+   * Optional. The mapping rule state
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Optional. The mapping rule state
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRule.State getState() { + com.google.cloud.clouddms.v1.MappingRule.State result = + com.google.cloud.clouddms.v1.MappingRule.State.forNumber(state_); + return result == null ? com.google.cloud.clouddms.v1.MappingRule.State.UNRECOGNIZED : result; + } + + public static final int RULE_SCOPE_FIELD_NUMBER = 4; + private int ruleScope_ = 0; + /** + * + * + *
+   * Required. The rule scope
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for ruleScope. + */ + @java.lang.Override + public int getRuleScopeValue() { + return ruleScope_; + } + /** + * + * + *
+   * Required. The rule scope
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ruleScope. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getRuleScope() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(ruleScope_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + + public static final int FILTER_FIELD_NUMBER = 5; + private com.google.cloud.clouddms.v1.MappingRuleFilter filter_; + /** + * + * + *
+   * Required. The rule filter
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return filter_ != null; + } + /** + * + * + *
+   * Required. The rule filter
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRuleFilter getFilter() { + return filter_ == null + ? com.google.cloud.clouddms.v1.MappingRuleFilter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+   * Required. The rule filter
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRuleFilterOrBuilder getFilterOrBuilder() { + return filter_ == null + ? com.google.cloud.clouddms.v1.MappingRuleFilter.getDefaultInstance() + : filter_; + } + + public static final int RULE_ORDER_FIELD_NUMBER = 6; + private long ruleOrder_ = 0L; + /** + * + * + *
+   * Required. The order in which the rule is applied. Lower order rules are
+   * applied before higher value rules so they may end up being overridden.
+   * 
+ * + * int64 rule_order = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ruleOrder. + */ + @java.lang.Override + public long getRuleOrder() { + return ruleOrder_; + } + + public static final int REVISION_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
+   * Output only. The revision ID of the mapping rule.
+   * A new revision is committed whenever the mapping rule is changed in any
+   * way. The format is an 8-character hexadecimal string.
+   * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The revision ID of the mapping rule.
+   * A new revision is committed whenever the mapping rule is changed in any
+   * way. The format is an 8-character hexadecimal string.
+   * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp revisionCreateTime_; + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + @java.lang.Override + public boolean hasRevisionCreateTime() { + return revisionCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRevisionCreateTime() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + + public static final int SINGLE_ENTITY_RENAME_FIELD_NUMBER = 102; + /** + * + * + *
+   * Optional. Rule to specify how a single entity should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singleEntityRename field is set. + */ + @java.lang.Override + public boolean hasSingleEntityRename() { + return detailsCase_ == 102; + } + /** + * + * + *
+   * Optional. Rule to specify how a single entity should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singleEntityRename. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleEntityRename getSingleEntityRename() { + if (detailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.SingleEntityRename) details_; + } + return com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how a single entity should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleEntityRenameOrBuilder getSingleEntityRenameOrBuilder() { + if (detailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.SingleEntityRename) details_; + } + return com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance(); + } + + public static final int MULTI_ENTITY_RENAME_FIELD_NUMBER = 103; + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiEntityRename field is set. + */ + @java.lang.Override + public boolean hasMultiEntityRename() { + return detailsCase_ == 103; + } + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiEntityRename. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiEntityRename getMultiEntityRename() { + if (detailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.MultiEntityRename) details_; + } + return com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiEntityRenameOrBuilder getMultiEntityRenameOrBuilder() { + if (detailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.MultiEntityRename) details_; + } + return com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance(); + } + + public static final int ENTITY_MOVE_FIELD_NUMBER = 105; + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be relocated into
+   * a different schema.
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the entityMove field is set. + */ + @java.lang.Override + public boolean hasEntityMove() { + return detailsCase_ == 105; + } + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be relocated into
+   * a different schema.
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The entityMove. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMove getEntityMove() { + if (detailsCase_ == 105) { + return (com.google.cloud.clouddms.v1.EntityMove) details_; + } + return com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be relocated into
+   * a different schema.
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMoveOrBuilder getEntityMoveOrBuilder() { + if (detailsCase_ == 105) { + return (com.google.cloud.clouddms.v1.EntityMove) details_; + } + return com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance(); + } + + public static final int SINGLE_COLUMN_CHANGE_FIELD_NUMBER = 106; + /** + * + * + *
+   * Optional. Rule to specify how a single column is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singleColumnChange field is set. + */ + @java.lang.Override + public boolean hasSingleColumnChange() { + return detailsCase_ == 106; + } + /** + * + * + *
+   * Optional. Rule to specify how a single column is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singleColumnChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleColumnChange getSingleColumnChange() { + if (detailsCase_ == 106) { + return (com.google.cloud.clouddms.v1.SingleColumnChange) details_; + } + return com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how a single column is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleColumnChangeOrBuilder getSingleColumnChangeOrBuilder() { + if (detailsCase_ == 106) { + return (com.google.cloud.clouddms.v1.SingleColumnChange) details_; + } + return com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance(); + } + + public static final int MULTI_COLUMN_DATA_TYPE_CHANGE_FIELD_NUMBER = 107; + /** + * + * + *
+   * Optional. Rule to specify how multiple columns should be converted to a
+   * different data type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiColumnDataTypeChange field is set. + */ + @java.lang.Override + public boolean hasMultiColumnDataTypeChange() { + return detailsCase_ == 107; + } + /** + * + * + *
+   * Optional. Rule to specify how multiple columns should be converted to a
+   * different data type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiColumnDataTypeChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChange getMultiColumnDataTypeChange() { + if (detailsCase_ == 107) { + return (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_; + } + return com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how multiple columns should be converted to a
+   * different data type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChangeOrBuilder + getMultiColumnDataTypeChangeOrBuilder() { + if (detailsCase_ == 107) { + return (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_; + } + return com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance(); + } + + public static final int CONDITIONAL_COLUMN_SET_VALUE_FIELD_NUMBER = 108; + /** + * + * + *
+   * Optional. Rule to specify how the data contained in a column should be
+   * transformed (such as trimmed, rounded, etc) provided that the data meets
+   * certain criteria.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditionalColumnSetValue field is set. + */ + @java.lang.Override + public boolean hasConditionalColumnSetValue() { + return detailsCase_ == 108; + } + /** + * + * + *
+   * Optional. Rule to specify how the data contained in a column should be
+   * transformed (such as trimmed, rounded, etc) provided that the data meets
+   * certain criteria.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditionalColumnSetValue. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConditionalColumnSetValue getConditionalColumnSetValue() { + if (detailsCase_ == 108) { + return (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_; + } + return com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how the data contained in a column should be
+   * transformed (such as trimmed, rounded, etc) provided that the data meets
+   * certain criteria.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConditionalColumnSetValueOrBuilder + getConditionalColumnSetValueOrBuilder() { + if (detailsCase_ == 108) { + return (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_; + } + return com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance(); + } + + public static final int CONVERT_ROWID_COLUMN_FIELD_NUMBER = 114; + /** + * + * + *
+   * Optional. Rule to specify how multiple tables should be converted with an
+   * additional rowid column.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the convertRowidColumn field is set. + */ + @java.lang.Override + public boolean hasConvertRowidColumn() { + return detailsCase_ == 114; + } + /** + * + * + *
+   * Optional. Rule to specify how multiple tables should be converted with an
+   * additional rowid column.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The convertRowidColumn. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertRowIdToColumn getConvertRowidColumn() { + if (detailsCase_ == 114) { + return (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_; + } + return com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how multiple tables should be converted with an
+   * additional rowid column.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertRowIdToColumnOrBuilder + getConvertRowidColumnOrBuilder() { + if (detailsCase_ == 114) { + return (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_; + } + return com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance(); + } + + public static final int SET_TABLE_PRIMARY_KEY_FIELD_NUMBER = 115; + /** + * + * + *
+   * Optional. Rule to specify the primary key for a table
+   * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the setTablePrimaryKey field is set. + */ + @java.lang.Override + public boolean hasSetTablePrimaryKey() { + return detailsCase_ == 115; + } + /** + * + * + *
+   * Optional. Rule to specify the primary key for a table
+   * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The setTablePrimaryKey. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SetTablePrimaryKey getSetTablePrimaryKey() { + if (detailsCase_ == 115) { + return (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_; + } + return com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify the primary key for a table
+   * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SetTablePrimaryKeyOrBuilder getSetTablePrimaryKeyOrBuilder() { + if (detailsCase_ == 115) { + return (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_; + } + return com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance(); + } + + public static final int SINGLE_PACKAGE_CHANGE_FIELD_NUMBER = 116; + /** + * + * + *
+   * Optional. Rule to specify how a single package is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singlePackageChange field is set. + */ + @java.lang.Override + public boolean hasSinglePackageChange() { + return detailsCase_ == 116; + } + /** + * + * + *
+   * Optional. Rule to specify how a single package is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singlePackageChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SinglePackageChange getSinglePackageChange() { + if (detailsCase_ == 116) { + return (com.google.cloud.clouddms.v1.SinglePackageChange) details_; + } + return com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify how a single package is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SinglePackageChangeOrBuilder + getSinglePackageChangeOrBuilder() { + if (detailsCase_ == 116) { + return (com.google.cloud.clouddms.v1.SinglePackageChange) details_; + } + return com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance(); + } + + public static final int SOURCE_SQL_CHANGE_FIELD_NUMBER = 117; + /** + * + * + *
+   * Optional. Rule to change the sql code for an entity, for example,
+   * function, procedure.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceSqlChange field is set. + */ + @java.lang.Override + public boolean hasSourceSqlChange() { + return detailsCase_ == 117; + } + /** + * + * + *
+   * Optional. Rule to change the sql code for an entity, for example,
+   * function, procedure.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceSqlChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceSqlChange getSourceSqlChange() { + if (detailsCase_ == 117) { + return (com.google.cloud.clouddms.v1.SourceSqlChange) details_; + } + return com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to change the sql code for an entity, for example,
+   * function, procedure.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceSqlChangeOrBuilder getSourceSqlChangeOrBuilder() { + if (detailsCase_ == 117) { + return (com.google.cloud.clouddms.v1.SourceSqlChange) details_; + } + return com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance(); + } + + public static final int FILTER_TABLE_COLUMNS_FIELD_NUMBER = 118; + /** + * + * + *
+   * Optional. Rule to specify the list of columns to include or exclude from
+   * a table.
+   * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filterTableColumns field is set. + */ + @java.lang.Override + public boolean hasFilterTableColumns() { + return detailsCase_ == 118; + } + /** + * + * + *
+   * Optional. Rule to specify the list of columns to include or exclude from
+   * a table.
+   * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterTableColumns. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FilterTableColumns getFilterTableColumns() { + if (detailsCase_ == 118) { + return (com.google.cloud.clouddms.v1.FilterTableColumns) details_; + } + return com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Rule to specify the list of columns to include or exclude from
+   * a table.
+   * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FilterTableColumnsOrBuilder getFilterTableColumnsOrBuilder() { + if (detailsCase_ == 118) { + return (com.google.cloud.clouddms.v1.FilterTableColumns) details_; + } + return com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (state_ != com.google.cloud.clouddms.v1.MappingRule.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (ruleScope_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, ruleScope_); + } + if (filter_ != null) { + output.writeMessage(5, getFilter()); + } + if (ruleOrder_ != 0L) { + output.writeInt64(6, ruleOrder_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, revisionId_); + } + if (revisionCreateTime_ != null) { + output.writeMessage(8, getRevisionCreateTime()); + } + if (detailsCase_ == 102) { + output.writeMessage(102, (com.google.cloud.clouddms.v1.SingleEntityRename) details_); + } + if (detailsCase_ == 103) { + output.writeMessage(103, (com.google.cloud.clouddms.v1.MultiEntityRename) details_); + } + if (detailsCase_ == 105) { + output.writeMessage(105, (com.google.cloud.clouddms.v1.EntityMove) details_); + } + if (detailsCase_ == 106) { + output.writeMessage(106, (com.google.cloud.clouddms.v1.SingleColumnChange) details_); + } + if (detailsCase_ == 107) { + output.writeMessage(107, (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_); + } + if (detailsCase_ == 108) { + output.writeMessage(108, (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_); + } + if (detailsCase_ == 114) { + output.writeMessage(114, (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_); + } + if (detailsCase_ == 115) { + output.writeMessage(115, (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_); + } + if (detailsCase_ == 116) { + output.writeMessage(116, (com.google.cloud.clouddms.v1.SinglePackageChange) details_); + } + if (detailsCase_ == 117) { + output.writeMessage(117, (com.google.cloud.clouddms.v1.SourceSqlChange) details_); + } + if (detailsCase_ == 118) { + output.writeMessage(118, (com.google.cloud.clouddms.v1.FilterTableColumns) details_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (state_ != com.google.cloud.clouddms.v1.MappingRule.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (ruleScope_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, ruleScope_); + } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFilter()); + } + if (ruleOrder_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ruleOrder_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, revisionId_); + } + if (revisionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRevisionCreateTime()); + } + if (detailsCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.clouddms.v1.SingleEntityRename) details_); + } + if (detailsCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.clouddms.v1.MultiEntityRename) details_); + } + if (detailsCase_ == 105) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 105, (com.google.cloud.clouddms.v1.EntityMove) details_); + } + if (detailsCase_ == 106) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.clouddms.v1.SingleColumnChange) details_); + } + if (detailsCase_ == 107) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 107, (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_); + } + if (detailsCase_ == 108) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 108, (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_); + } + if (detailsCase_ == 114) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 114, (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_); + } + if (detailsCase_ == 115) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 115, (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_); + } + if (detailsCase_ == 116) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 116, (com.google.cloud.clouddms.v1.SinglePackageChange) details_); + } + if (detailsCase_ == 117) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 117, (com.google.cloud.clouddms.v1.SourceSqlChange) details_); + } + if (detailsCase_ == 118) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 118, (com.google.cloud.clouddms.v1.FilterTableColumns) details_); + } + 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.MappingRule)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MappingRule other = (com.google.cloud.clouddms.v1.MappingRule) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (state_ != other.state_) return false; + if (ruleScope_ != other.ruleScope_) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (getRuleOrder() != other.getRuleOrder()) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; + if (hasRevisionCreateTime()) { + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + } + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 102: + if (!getSingleEntityRename().equals(other.getSingleEntityRename())) return false; + break; + case 103: + if (!getMultiEntityRename().equals(other.getMultiEntityRename())) return false; + break; + case 105: + if (!getEntityMove().equals(other.getEntityMove())) return false; + break; + case 106: + if (!getSingleColumnChange().equals(other.getSingleColumnChange())) return false; + break; + case 107: + if (!getMultiColumnDataTypeChange().equals(other.getMultiColumnDataTypeChange())) + return false; + break; + case 108: + if (!getConditionalColumnSetValue().equals(other.getConditionalColumnSetValue())) + return false; + break; + case 114: + if (!getConvertRowidColumn().equals(other.getConvertRowidColumn())) return false; + break; + case 115: + if (!getSetTablePrimaryKey().equals(other.getSetTablePrimaryKey())) return false; + break; + case 116: + if (!getSinglePackageChange().equals(other.getSinglePackageChange())) return false; + break; + case 117: + if (!getSourceSqlChange().equals(other.getSourceSqlChange())) return false; + break; + case 118: + if (!getFilterTableColumns().equals(other.getFilterTableColumns())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RULE_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + ruleScope_; + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (37 * hash) + RULE_ORDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRuleOrder()); + hash = (37 * hash) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + if (hasRevisionCreateTime()) { + hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRevisionCreateTime().hashCode(); + } + switch (detailsCase_) { + case 102: + hash = (37 * hash) + SINGLE_ENTITY_RENAME_FIELD_NUMBER; + hash = (53 * hash) + getSingleEntityRename().hashCode(); + break; + case 103: + hash = (37 * hash) + MULTI_ENTITY_RENAME_FIELD_NUMBER; + hash = (53 * hash) + getMultiEntityRename().hashCode(); + break; + case 105: + hash = (37 * hash) + ENTITY_MOVE_FIELD_NUMBER; + hash = (53 * hash) + getEntityMove().hashCode(); + break; + case 106: + hash = (37 * hash) + SINGLE_COLUMN_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getSingleColumnChange().hashCode(); + break; + case 107: + hash = (37 * hash) + MULTI_COLUMN_DATA_TYPE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getMultiColumnDataTypeChange().hashCode(); + break; + case 108: + hash = (37 * hash) + CONDITIONAL_COLUMN_SET_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getConditionalColumnSetValue().hashCode(); + break; + case 114: + hash = (37 * hash) + CONVERT_ROWID_COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getConvertRowidColumn().hashCode(); + break; + case 115: + hash = (37 * hash) + SET_TABLE_PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + getSetTablePrimaryKey().hashCode(); + break; + case 116: + hash = (37 * hash) + SINGLE_PACKAGE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getSinglePackageChange().hashCode(); + break; + case 117: + hash = (37 * hash) + SOURCE_SQL_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getSourceSqlChange().hashCode(); + break; + case 118: + hash = (37 * hash) + FILTER_TABLE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getFilterTableColumns().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.MappingRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MappingRule 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.MappingRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MappingRule 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.MappingRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MappingRule 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.MappingRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MappingRule 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.MappingRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MappingRule 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.MappingRule 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.MappingRule 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.MappingRule 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; + } + /** + * + * + *
+   * Definition of a transformation that is to be applied to a group of entities
+   * in the source schema. Several such transformations can be applied to an
+   * entity sequentially to define the corresponding entity in the target schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MappingRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MappingRule) + com.google.cloud.clouddms.v1.MappingRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MappingRule.class, + com.google.cloud.clouddms.v1.MappingRule.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MappingRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + state_ = 0; + ruleScope_ = 0; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + ruleOrder_ = 0L; + revisionId_ = ""; + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + if (singleEntityRenameBuilder_ != null) { + singleEntityRenameBuilder_.clear(); + } + if (multiEntityRenameBuilder_ != null) { + multiEntityRenameBuilder_.clear(); + } + if (entityMoveBuilder_ != null) { + entityMoveBuilder_.clear(); + } + if (singleColumnChangeBuilder_ != null) { + singleColumnChangeBuilder_.clear(); + } + if (multiColumnDataTypeChangeBuilder_ != null) { + multiColumnDataTypeChangeBuilder_.clear(); + } + if (conditionalColumnSetValueBuilder_ != null) { + conditionalColumnSetValueBuilder_.clear(); + } + if (convertRowidColumnBuilder_ != null) { + convertRowidColumnBuilder_.clear(); + } + if (setTablePrimaryKeyBuilder_ != null) { + setTablePrimaryKeyBuilder_.clear(); + } + if (singlePackageChangeBuilder_ != null) { + singlePackageChangeBuilder_.clear(); + } + if (sourceSqlChangeBuilder_ != null) { + sourceSqlChangeBuilder_.clear(); + } + if (filterTableColumnsBuilder_ != null) { + filterTableColumnsBuilder_.clear(); + } + detailsCase_ = 0; + details_ = 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_MappingRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRule getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRule build() { + com.google.cloud.clouddms.v1.MappingRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRule buildPartial() { + com.google.cloud.clouddms.v1.MappingRule result = + new com.google.cloud.clouddms.v1.MappingRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MappingRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ruleScope_ = ruleScope_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ruleOrder_ = ruleOrder_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.MappingRule result) { + result.detailsCase_ = detailsCase_; + result.details_ = this.details_; + if (detailsCase_ == 102 && singleEntityRenameBuilder_ != null) { + result.details_ = singleEntityRenameBuilder_.build(); + } + if (detailsCase_ == 103 && multiEntityRenameBuilder_ != null) { + result.details_ = multiEntityRenameBuilder_.build(); + } + if (detailsCase_ == 105 && entityMoveBuilder_ != null) { + result.details_ = entityMoveBuilder_.build(); + } + if (detailsCase_ == 106 && singleColumnChangeBuilder_ != null) { + result.details_ = singleColumnChangeBuilder_.build(); + } + if (detailsCase_ == 107 && multiColumnDataTypeChangeBuilder_ != null) { + result.details_ = multiColumnDataTypeChangeBuilder_.build(); + } + if (detailsCase_ == 108 && conditionalColumnSetValueBuilder_ != null) { + result.details_ = conditionalColumnSetValueBuilder_.build(); + } + if (detailsCase_ == 114 && convertRowidColumnBuilder_ != null) { + result.details_ = convertRowidColumnBuilder_.build(); + } + if (detailsCase_ == 115 && setTablePrimaryKeyBuilder_ != null) { + result.details_ = setTablePrimaryKeyBuilder_.build(); + } + if (detailsCase_ == 116 && singlePackageChangeBuilder_ != null) { + result.details_ = singlePackageChangeBuilder_.build(); + } + if (detailsCase_ == 117 && sourceSqlChangeBuilder_ != null) { + result.details_ = sourceSqlChangeBuilder_.build(); + } + if (detailsCase_ == 118 && filterTableColumnsBuilder_ != null) { + result.details_ = filterTableColumnsBuilder_.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.MappingRule) { + return mergeFrom((com.google.cloud.clouddms.v1.MappingRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MappingRule other) { + if (other == com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.ruleScope_ != 0) { + setRuleScopeValue(other.getRuleScopeValue()); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.getRuleOrder() != 0L) { + setRuleOrder(other.getRuleOrder()); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasRevisionCreateTime()) { + mergeRevisionCreateTime(other.getRevisionCreateTime()); + } + switch (other.getDetailsCase()) { + case SINGLE_ENTITY_RENAME: + { + mergeSingleEntityRename(other.getSingleEntityRename()); + break; + } + case MULTI_ENTITY_RENAME: + { + mergeMultiEntityRename(other.getMultiEntityRename()); + break; + } + case ENTITY_MOVE: + { + mergeEntityMove(other.getEntityMove()); + break; + } + case SINGLE_COLUMN_CHANGE: + { + mergeSingleColumnChange(other.getSingleColumnChange()); + break; + } + case MULTI_COLUMN_DATA_TYPE_CHANGE: + { + mergeMultiColumnDataTypeChange(other.getMultiColumnDataTypeChange()); + break; + } + case CONDITIONAL_COLUMN_SET_VALUE: + { + mergeConditionalColumnSetValue(other.getConditionalColumnSetValue()); + break; + } + case CONVERT_ROWID_COLUMN: + { + mergeConvertRowidColumn(other.getConvertRowidColumn()); + break; + } + case SET_TABLE_PRIMARY_KEY: + { + mergeSetTablePrimaryKey(other.getSetTablePrimaryKey()); + break; + } + case SINGLE_PACKAGE_CHANGE: + { + mergeSinglePackageChange(other.getSinglePackageChange()); + break; + } + case SOURCE_SQL_CHANGE: + { + mergeSourceSqlChange(other.getSourceSqlChange()); + break; + } + case FILTER_TABLE_COLUMNS: + { + mergeFilterTableColumns(other.getFilterTableColumns()); + break; + } + case DETAILS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + ruleScope_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + ruleOrder_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 818: + { + input.readMessage( + getSingleEntityRenameFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage( + getMultiEntityRenameFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 103; + break; + } // case 826 + case 842: + { + input.readMessage(getEntityMoveFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 105; + break; + } // case 842 + case 850: + { + input.readMessage( + getSingleColumnChangeFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 106; + break; + } // case 850 + case 858: + { + input.readMessage( + getMultiColumnDataTypeChangeFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 107; + break; + } // case 858 + case 866: + { + input.readMessage( + getConditionalColumnSetValueFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 108; + break; + } // case 866 + case 914: + { + input.readMessage( + getConvertRowidColumnFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 114; + break; + } // case 914 + case 922: + { + input.readMessage( + getSetTablePrimaryKeyFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 115; + break; + } // case 922 + case 930: + { + input.readMessage( + getSinglePackageChangeFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 116; + break; + } // case 930 + case 938: + { + input.readMessage(getSourceSqlChangeFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 117; + break; + } // case 938 + case 946: + { + input.readMessage( + getFilterTableColumnsFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 118; + break; + } // case 946 + 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 detailsCase_ = 0; + private java.lang.Object details_; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Full name of the mapping rule resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Full name of the mapping rule resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Full name of the mapping rule resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Full name of the mapping rule resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Full name of the mapping rule resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. A human readable name
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A human readable name
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A human readable name
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A human readable name
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A human readable name
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Optional. The mapping rule state
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Optional. The mapping rule state
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mapping rule state
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRule.State getState() { + com.google.cloud.clouddms.v1.MappingRule.State result = + com.google.cloud.clouddms.v1.MappingRule.State.forNumber(state_); + return result == null ? com.google.cloud.clouddms.v1.MappingRule.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. The mapping rule state
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.clouddms.v1.MappingRule.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mapping rule state
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private int ruleScope_ = 0; + /** + * + * + *
+     * Required. The rule scope
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for ruleScope. + */ + @java.lang.Override + public int getRuleScopeValue() { + return ruleScope_; + } + /** + * + * + *
+     * Required. The rule scope
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for ruleScope to set. + * @return This builder for chaining. + */ + public Builder setRuleScopeValue(int value) { + ruleScope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The rule scope
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ruleScope. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getRuleScope() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(ruleScope_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. The rule scope
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The ruleScope to set. + * @return This builder for chaining. + */ + public Builder setRuleScope(com.google.cloud.clouddms.v1.DatabaseEntityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + ruleScope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The rule scope
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRuleScope() { + bitField0_ = (bitField0_ & ~0x00000008); + ruleScope_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.MappingRuleFilter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRuleFilter, + com.google.cloud.clouddms.v1.MappingRuleFilter.Builder, + com.google.cloud.clouddms.v1.MappingRuleFilterOrBuilder> + filterBuilder_; + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filter. + */ + public com.google.cloud.clouddms.v1.MappingRuleFilter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.cloud.clouddms.v1.MappingRuleFilter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilter(com.google.cloud.clouddms.v1.MappingRuleFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilter( + com.google.cloud.clouddms.v1.MappingRuleFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFilter(com.google.cloud.clouddms.v1.MappingRuleFilter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && filter_ != null + && filter_ != com.google.cloud.clouddms.v1.MappingRuleFilter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000010); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.MappingRuleFilter.Builder getFilterBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.MappingRuleFilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.cloud.clouddms.v1.MappingRuleFilter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
+     * Required. The rule filter
+     * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRuleFilter, + com.google.cloud.clouddms.v1.MappingRuleFilter.Builder, + com.google.cloud.clouddms.v1.MappingRuleFilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MappingRuleFilter, + com.google.cloud.clouddms.v1.MappingRuleFilter.Builder, + com.google.cloud.clouddms.v1.MappingRuleFilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private long ruleOrder_; + /** + * + * + *
+     * Required. The order in which the rule is applied. Lower order rules are
+     * applied before higher value rules so they may end up being overridden.
+     * 
+ * + * int64 rule_order = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ruleOrder. + */ + @java.lang.Override + public long getRuleOrder() { + return ruleOrder_; + } + /** + * + * + *
+     * Required. The order in which the rule is applied. Lower order rules are
+     * applied before higher value rules so they may end up being overridden.
+     * 
+ * + * int64 rule_order = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ruleOrder to set. + * @return This builder for chaining. + */ + public Builder setRuleOrder(long value) { + + ruleOrder_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The order in which the rule is applied. Lower order rules are
+     * applied before higher value rules so they may end up being overridden.
+     * 
+ * + * int64 rule_order = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRuleOrder() { + bitField0_ = (bitField0_ & ~0x00000020); + ruleOrder_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
+     * Output only. The revision ID of the mapping rule.
+     * A new revision is committed whenever the mapping rule is changed in any
+     * way. The format is an 8-character hexadecimal string.
+     * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The revision ID of the mapping rule.
+     * A new revision is committed whenever the mapping rule is changed in any
+     * way. The format is an 8-character hexadecimal string.
+     * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The revision ID of the mapping rule.
+     * A new revision is committed whenever the mapping rule is changed in any
+     * way. The format is an 8-character hexadecimal string.
+     * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The revision ID of the mapping rule.
+     * A new revision is committed whenever the mapping rule is changed in any
+     * way. The format is an 8-character hexadecimal string.
+     * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The revision ID of the mapping rule.
+     * A new revision is committed whenever the mapping rule is changed in any
+     * way. The format is an 8-character hexadecimal string.
+     * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp revisionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + public boolean hasRevisionCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + public com.google.protobuf.Timestamp getRevisionCreateTime() { + if (revisionCreateTimeBuilder_ == null) { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } else { + return revisionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + revisionCreateTime_ = value; + } else { + revisionCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = builderForValue.build(); + } else { + revisionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRevisionCreateTimeBuilder().mergeFrom(value); + } else { + revisionCreateTime_ = value; + } + } else { + revisionCreateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRevisionCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRevisionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + if (revisionCreateTimeBuilder_ != null) { + return revisionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRevisionCreateTimeFieldBuilder() { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTime_ = null; + } + return revisionCreateTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SingleEntityRename, + com.google.cloud.clouddms.v1.SingleEntityRename.Builder, + com.google.cloud.clouddms.v1.SingleEntityRenameOrBuilder> + singleEntityRenameBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singleEntityRename field is set. + */ + @java.lang.Override + public boolean hasSingleEntityRename() { + return detailsCase_ == 102; + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singleEntityRename. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleEntityRename getSingleEntityRename() { + if (singleEntityRenameBuilder_ == null) { + if (detailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.SingleEntityRename) details_; + } + return com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance(); + } else { + if (detailsCase_ == 102) { + return singleEntityRenameBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSingleEntityRename(com.google.cloud.clouddms.v1.SingleEntityRename value) { + if (singleEntityRenameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + singleEntityRenameBuilder_.setMessage(value); + } + detailsCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSingleEntityRename( + com.google.cloud.clouddms.v1.SingleEntityRename.Builder builderForValue) { + if (singleEntityRenameBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + singleEntityRenameBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSingleEntityRename(com.google.cloud.clouddms.v1.SingleEntityRename value) { + if (singleEntityRenameBuilder_ == null) { + if (detailsCase_ == 102 + && details_ != com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.SingleEntityRename.newBuilder( + (com.google.cloud.clouddms.v1.SingleEntityRename) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 102) { + singleEntityRenameBuilder_.mergeFrom(value); + } else { + singleEntityRenameBuilder_.setMessage(value); + } + } + detailsCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSingleEntityRename() { + if (singleEntityRenameBuilder_ == null) { + if (detailsCase_ == 102) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 102) { + detailsCase_ = 0; + details_ = null; + } + singleEntityRenameBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SingleEntityRename.Builder getSingleEntityRenameBuilder() { + return getSingleEntityRenameFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleEntityRenameOrBuilder + getSingleEntityRenameOrBuilder() { + if ((detailsCase_ == 102) && (singleEntityRenameBuilder_ != null)) { + return singleEntityRenameBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.SingleEntityRename) details_; + } + return com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how a single entity should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SingleEntityRename, + com.google.cloud.clouddms.v1.SingleEntityRename.Builder, + com.google.cloud.clouddms.v1.SingleEntityRenameOrBuilder> + getSingleEntityRenameFieldBuilder() { + if (singleEntityRenameBuilder_ == null) { + if (!(detailsCase_ == 102)) { + details_ = com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance(); + } + singleEntityRenameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SingleEntityRename, + com.google.cloud.clouddms.v1.SingleEntityRename.Builder, + com.google.cloud.clouddms.v1.SingleEntityRenameOrBuilder>( + (com.google.cloud.clouddms.v1.SingleEntityRename) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 102; + onChanged(); + return singleEntityRenameBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MultiEntityRename, + com.google.cloud.clouddms.v1.MultiEntityRename.Builder, + com.google.cloud.clouddms.v1.MultiEntityRenameOrBuilder> + multiEntityRenameBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiEntityRename field is set. + */ + @java.lang.Override + public boolean hasMultiEntityRename() { + return detailsCase_ == 103; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiEntityRename. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiEntityRename getMultiEntityRename() { + if (multiEntityRenameBuilder_ == null) { + if (detailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.MultiEntityRename) details_; + } + return com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance(); + } else { + if (detailsCase_ == 103) { + return multiEntityRenameBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiEntityRename(com.google.cloud.clouddms.v1.MultiEntityRename value) { + if (multiEntityRenameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + multiEntityRenameBuilder_.setMessage(value); + } + detailsCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiEntityRename( + com.google.cloud.clouddms.v1.MultiEntityRename.Builder builderForValue) { + if (multiEntityRenameBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + multiEntityRenameBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiEntityRename(com.google.cloud.clouddms.v1.MultiEntityRename value) { + if (multiEntityRenameBuilder_ == null) { + if (detailsCase_ == 103 + && details_ != com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.MultiEntityRename.newBuilder( + (com.google.cloud.clouddms.v1.MultiEntityRename) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 103) { + multiEntityRenameBuilder_.mergeFrom(value); + } else { + multiEntityRenameBuilder_.setMessage(value); + } + } + detailsCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiEntityRename() { + if (multiEntityRenameBuilder_ == null) { + if (detailsCase_ == 103) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 103) { + detailsCase_ = 0; + details_ = null; + } + multiEntityRenameBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.MultiEntityRename.Builder getMultiEntityRenameBuilder() { + return getMultiEntityRenameFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiEntityRenameOrBuilder getMultiEntityRenameOrBuilder() { + if ((detailsCase_ == 103) && (multiEntityRenameBuilder_ != null)) { + return multiEntityRenameBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.MultiEntityRename) details_; + } + return com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be renamed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MultiEntityRename, + com.google.cloud.clouddms.v1.MultiEntityRename.Builder, + com.google.cloud.clouddms.v1.MultiEntityRenameOrBuilder> + getMultiEntityRenameFieldBuilder() { + if (multiEntityRenameBuilder_ == null) { + if (!(detailsCase_ == 103)) { + details_ = com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance(); + } + multiEntityRenameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MultiEntityRename, + com.google.cloud.clouddms.v1.MultiEntityRename.Builder, + com.google.cloud.clouddms.v1.MultiEntityRenameOrBuilder>( + (com.google.cloud.clouddms.v1.MultiEntityRename) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 103; + onChanged(); + return multiEntityRenameBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMove, + com.google.cloud.clouddms.v1.EntityMove.Builder, + com.google.cloud.clouddms.v1.EntityMoveOrBuilder> + entityMoveBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the entityMove field is set. + */ + @java.lang.Override + public boolean hasEntityMove() { + return detailsCase_ == 105; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The entityMove. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMove getEntityMove() { + if (entityMoveBuilder_ == null) { + if (detailsCase_ == 105) { + return (com.google.cloud.clouddms.v1.EntityMove) details_; + } + return com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance(); + } else { + if (detailsCase_ == 105) { + return entityMoveBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEntityMove(com.google.cloud.clouddms.v1.EntityMove value) { + if (entityMoveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + entityMoveBuilder_.setMessage(value); + } + detailsCase_ = 105; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEntityMove(com.google.cloud.clouddms.v1.EntityMove.Builder builderForValue) { + if (entityMoveBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + entityMoveBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 105; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEntityMove(com.google.cloud.clouddms.v1.EntityMove value) { + if (entityMoveBuilder_ == null) { + if (detailsCase_ == 105 + && details_ != com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.EntityMove.newBuilder( + (com.google.cloud.clouddms.v1.EntityMove) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 105) { + entityMoveBuilder_.mergeFrom(value); + } else { + entityMoveBuilder_.setMessage(value); + } + } + detailsCase_ = 105; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEntityMove() { + if (entityMoveBuilder_ == null) { + if (detailsCase_ == 105) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 105) { + detailsCase_ = 0; + details_ = null; + } + entityMoveBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.EntityMove.Builder getEntityMoveBuilder() { + return getEntityMoveFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMoveOrBuilder getEntityMoveOrBuilder() { + if ((detailsCase_ == 105) && (entityMoveBuilder_ != null)) { + return entityMoveBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 105) { + return (com.google.cloud.clouddms.v1.EntityMove) details_; + } + return com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple entities should be relocated into
+     * a different schema.
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMove, + com.google.cloud.clouddms.v1.EntityMove.Builder, + com.google.cloud.clouddms.v1.EntityMoveOrBuilder> + getEntityMoveFieldBuilder() { + if (entityMoveBuilder_ == null) { + if (!(detailsCase_ == 105)) { + details_ = com.google.cloud.clouddms.v1.EntityMove.getDefaultInstance(); + } + entityMoveBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMove, + com.google.cloud.clouddms.v1.EntityMove.Builder, + com.google.cloud.clouddms.v1.EntityMoveOrBuilder>( + (com.google.cloud.clouddms.v1.EntityMove) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 105; + onChanged(); + return entityMoveBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SingleColumnChange, + com.google.cloud.clouddms.v1.SingleColumnChange.Builder, + com.google.cloud.clouddms.v1.SingleColumnChangeOrBuilder> + singleColumnChangeBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singleColumnChange field is set. + */ + @java.lang.Override + public boolean hasSingleColumnChange() { + return detailsCase_ == 106; + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singleColumnChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleColumnChange getSingleColumnChange() { + if (singleColumnChangeBuilder_ == null) { + if (detailsCase_ == 106) { + return (com.google.cloud.clouddms.v1.SingleColumnChange) details_; + } + return com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance(); + } else { + if (detailsCase_ == 106) { + return singleColumnChangeBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSingleColumnChange(com.google.cloud.clouddms.v1.SingleColumnChange value) { + if (singleColumnChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + singleColumnChangeBuilder_.setMessage(value); + } + detailsCase_ = 106; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSingleColumnChange( + com.google.cloud.clouddms.v1.SingleColumnChange.Builder builderForValue) { + if (singleColumnChangeBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + singleColumnChangeBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 106; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSingleColumnChange(com.google.cloud.clouddms.v1.SingleColumnChange value) { + if (singleColumnChangeBuilder_ == null) { + if (detailsCase_ == 106 + && details_ != com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.SingleColumnChange.newBuilder( + (com.google.cloud.clouddms.v1.SingleColumnChange) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 106) { + singleColumnChangeBuilder_.mergeFrom(value); + } else { + singleColumnChangeBuilder_.setMessage(value); + } + } + detailsCase_ = 106; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSingleColumnChange() { + if (singleColumnChangeBuilder_ == null) { + if (detailsCase_ == 106) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 106) { + detailsCase_ = 0; + details_ = null; + } + singleColumnChangeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SingleColumnChange.Builder getSingleColumnChangeBuilder() { + return getSingleColumnChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleColumnChangeOrBuilder + getSingleColumnChangeOrBuilder() { + if ((detailsCase_ == 106) && (singleColumnChangeBuilder_ != null)) { + return singleColumnChangeBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 106) { + return (com.google.cloud.clouddms.v1.SingleColumnChange) details_; + } + return com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how a single column is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SingleColumnChange, + com.google.cloud.clouddms.v1.SingleColumnChange.Builder, + com.google.cloud.clouddms.v1.SingleColumnChangeOrBuilder> + getSingleColumnChangeFieldBuilder() { + if (singleColumnChangeBuilder_ == null) { + if (!(detailsCase_ == 106)) { + details_ = com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance(); + } + singleColumnChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SingleColumnChange, + com.google.cloud.clouddms.v1.SingleColumnChange.Builder, + com.google.cloud.clouddms.v1.SingleColumnChangeOrBuilder>( + (com.google.cloud.clouddms.v1.SingleColumnChange) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 106; + onChanged(); + return singleColumnChangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.Builder, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChangeOrBuilder> + multiColumnDataTypeChangeBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiColumnDataTypeChange field is set. + */ + @java.lang.Override + public boolean hasMultiColumnDataTypeChange() { + return detailsCase_ == 107; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiColumnDataTypeChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChange getMultiColumnDataTypeChange() { + if (multiColumnDataTypeChangeBuilder_ == null) { + if (detailsCase_ == 107) { + return (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_; + } + return com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance(); + } else { + if (detailsCase_ == 107) { + return multiColumnDataTypeChangeBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiColumnDataTypeChange( + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange value) { + if (multiColumnDataTypeChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + multiColumnDataTypeChangeBuilder_.setMessage(value); + } + detailsCase_ = 107; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiColumnDataTypeChange( + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.Builder builderForValue) { + if (multiColumnDataTypeChangeBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + multiColumnDataTypeChangeBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 107; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiColumnDataTypeChange( + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange value) { + if (multiColumnDataTypeChangeBuilder_ == null) { + if (detailsCase_ == 107 + && details_ + != com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.newBuilder( + (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 107) { + multiColumnDataTypeChangeBuilder_.mergeFrom(value); + } else { + multiColumnDataTypeChangeBuilder_.setMessage(value); + } + } + detailsCase_ = 107; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiColumnDataTypeChange() { + if (multiColumnDataTypeChangeBuilder_ == null) { + if (detailsCase_ == 107) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 107) { + detailsCase_ = 0; + details_ = null; + } + multiColumnDataTypeChangeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.Builder + getMultiColumnDataTypeChangeBuilder() { + return getMultiColumnDataTypeChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChangeOrBuilder + getMultiColumnDataTypeChangeOrBuilder() { + if ((detailsCase_ == 107) && (multiColumnDataTypeChangeBuilder_ != null)) { + return multiColumnDataTypeChangeBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 107) { + return (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_; + } + return com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple columns should be converted to a
+     * different data type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.Builder, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChangeOrBuilder> + getMultiColumnDataTypeChangeFieldBuilder() { + if (multiColumnDataTypeChangeBuilder_ == null) { + if (!(detailsCase_ == 107)) { + details_ = com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance(); + } + multiColumnDataTypeChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.Builder, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChangeOrBuilder>( + (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 107; + onChanged(); + return multiColumnDataTypeChangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConditionalColumnSetValue, + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.Builder, + com.google.cloud.clouddms.v1.ConditionalColumnSetValueOrBuilder> + conditionalColumnSetValueBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditionalColumnSetValue field is set. + */ + @java.lang.Override + public boolean hasConditionalColumnSetValue() { + return detailsCase_ == 108; + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditionalColumnSetValue. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConditionalColumnSetValue getConditionalColumnSetValue() { + if (conditionalColumnSetValueBuilder_ == null) { + if (detailsCase_ == 108) { + return (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_; + } + return com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance(); + } else { + if (detailsCase_ == 108) { + return conditionalColumnSetValueBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConditionalColumnSetValue( + com.google.cloud.clouddms.v1.ConditionalColumnSetValue value) { + if (conditionalColumnSetValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + conditionalColumnSetValueBuilder_.setMessage(value); + } + detailsCase_ = 108; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConditionalColumnSetValue( + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.Builder builderForValue) { + if (conditionalColumnSetValueBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + conditionalColumnSetValueBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 108; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConditionalColumnSetValue( + com.google.cloud.clouddms.v1.ConditionalColumnSetValue value) { + if (conditionalColumnSetValueBuilder_ == null) { + if (detailsCase_ == 108 + && details_ + != com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.newBuilder( + (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 108) { + conditionalColumnSetValueBuilder_.mergeFrom(value); + } else { + conditionalColumnSetValueBuilder_.setMessage(value); + } + } + detailsCase_ = 108; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConditionalColumnSetValue() { + if (conditionalColumnSetValueBuilder_ == null) { + if (detailsCase_ == 108) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 108) { + detailsCase_ = 0; + details_ = null; + } + conditionalColumnSetValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.ConditionalColumnSetValue.Builder + getConditionalColumnSetValueBuilder() { + return getConditionalColumnSetValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConditionalColumnSetValueOrBuilder + getConditionalColumnSetValueOrBuilder() { + if ((detailsCase_ == 108) && (conditionalColumnSetValueBuilder_ != null)) { + return conditionalColumnSetValueBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 108) { + return (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_; + } + return com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how the data contained in a column should be
+     * transformed (such as trimmed, rounded, etc) provided that the data meets
+     * certain criteria.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConditionalColumnSetValue, + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.Builder, + com.google.cloud.clouddms.v1.ConditionalColumnSetValueOrBuilder> + getConditionalColumnSetValueFieldBuilder() { + if (conditionalColumnSetValueBuilder_ == null) { + if (!(detailsCase_ == 108)) { + details_ = com.google.cloud.clouddms.v1.ConditionalColumnSetValue.getDefaultInstance(); + } + conditionalColumnSetValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConditionalColumnSetValue, + com.google.cloud.clouddms.v1.ConditionalColumnSetValue.Builder, + com.google.cloud.clouddms.v1.ConditionalColumnSetValueOrBuilder>( + (com.google.cloud.clouddms.v1.ConditionalColumnSetValue) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 108; + onChanged(); + return conditionalColumnSetValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConvertRowIdToColumn, + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.Builder, + com.google.cloud.clouddms.v1.ConvertRowIdToColumnOrBuilder> + convertRowidColumnBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the convertRowidColumn field is set. + */ + @java.lang.Override + public boolean hasConvertRowidColumn() { + return detailsCase_ == 114; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The convertRowidColumn. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertRowIdToColumn getConvertRowidColumn() { + if (convertRowidColumnBuilder_ == null) { + if (detailsCase_ == 114) { + return (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_; + } + return com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance(); + } else { + if (detailsCase_ == 114) { + return convertRowidColumnBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConvertRowidColumn(com.google.cloud.clouddms.v1.ConvertRowIdToColumn value) { + if (convertRowidColumnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + convertRowidColumnBuilder_.setMessage(value); + } + detailsCase_ = 114; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConvertRowidColumn( + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.Builder builderForValue) { + if (convertRowidColumnBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + convertRowidColumnBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 114; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConvertRowidColumn( + com.google.cloud.clouddms.v1.ConvertRowIdToColumn value) { + if (convertRowidColumnBuilder_ == null) { + if (detailsCase_ == 114 + && details_ != com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.newBuilder( + (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 114) { + convertRowidColumnBuilder_.mergeFrom(value); + } else { + convertRowidColumnBuilder_.setMessage(value); + } + } + detailsCase_ = 114; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConvertRowidColumn() { + if (convertRowidColumnBuilder_ == null) { + if (detailsCase_ == 114) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 114) { + detailsCase_ = 0; + details_ = null; + } + convertRowidColumnBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.ConvertRowIdToColumn.Builder + getConvertRowidColumnBuilder() { + return getConvertRowidColumnFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertRowIdToColumnOrBuilder + getConvertRowidColumnOrBuilder() { + if ((detailsCase_ == 114) && (convertRowidColumnBuilder_ != null)) { + return convertRowidColumnBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 114) { + return (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_; + } + return com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how multiple tables should be converted with an
+     * additional rowid column.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConvertRowIdToColumn, + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.Builder, + com.google.cloud.clouddms.v1.ConvertRowIdToColumnOrBuilder> + getConvertRowidColumnFieldBuilder() { + if (convertRowidColumnBuilder_ == null) { + if (!(detailsCase_ == 114)) { + details_ = com.google.cloud.clouddms.v1.ConvertRowIdToColumn.getDefaultInstance(); + } + convertRowidColumnBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConvertRowIdToColumn, + com.google.cloud.clouddms.v1.ConvertRowIdToColumn.Builder, + com.google.cloud.clouddms.v1.ConvertRowIdToColumnOrBuilder>( + (com.google.cloud.clouddms.v1.ConvertRowIdToColumn) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 114; + onChanged(); + return convertRowidColumnBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SetTablePrimaryKey, + com.google.cloud.clouddms.v1.SetTablePrimaryKey.Builder, + com.google.cloud.clouddms.v1.SetTablePrimaryKeyOrBuilder> + setTablePrimaryKeyBuilder_; + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the setTablePrimaryKey field is set. + */ + @java.lang.Override + public boolean hasSetTablePrimaryKey() { + return detailsCase_ == 115; + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The setTablePrimaryKey. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SetTablePrimaryKey getSetTablePrimaryKey() { + if (setTablePrimaryKeyBuilder_ == null) { + if (detailsCase_ == 115) { + return (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_; + } + return com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance(); + } else { + if (detailsCase_ == 115) { + return setTablePrimaryKeyBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSetTablePrimaryKey(com.google.cloud.clouddms.v1.SetTablePrimaryKey value) { + if (setTablePrimaryKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + setTablePrimaryKeyBuilder_.setMessage(value); + } + detailsCase_ = 115; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSetTablePrimaryKey( + com.google.cloud.clouddms.v1.SetTablePrimaryKey.Builder builderForValue) { + if (setTablePrimaryKeyBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + setTablePrimaryKeyBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 115; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSetTablePrimaryKey(com.google.cloud.clouddms.v1.SetTablePrimaryKey value) { + if (setTablePrimaryKeyBuilder_ == null) { + if (detailsCase_ == 115 + && details_ != com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.SetTablePrimaryKey.newBuilder( + (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 115) { + setTablePrimaryKeyBuilder_.mergeFrom(value); + } else { + setTablePrimaryKeyBuilder_.setMessage(value); + } + } + detailsCase_ = 115; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSetTablePrimaryKey() { + if (setTablePrimaryKeyBuilder_ == null) { + if (detailsCase_ == 115) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 115) { + detailsCase_ = 0; + details_ = null; + } + setTablePrimaryKeyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SetTablePrimaryKey.Builder getSetTablePrimaryKeyBuilder() { + return getSetTablePrimaryKeyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SetTablePrimaryKeyOrBuilder + getSetTablePrimaryKeyOrBuilder() { + if ((detailsCase_ == 115) && (setTablePrimaryKeyBuilder_ != null)) { + return setTablePrimaryKeyBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 115) { + return (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_; + } + return com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify the primary key for a table
+     * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SetTablePrimaryKey, + com.google.cloud.clouddms.v1.SetTablePrimaryKey.Builder, + com.google.cloud.clouddms.v1.SetTablePrimaryKeyOrBuilder> + getSetTablePrimaryKeyFieldBuilder() { + if (setTablePrimaryKeyBuilder_ == null) { + if (!(detailsCase_ == 115)) { + details_ = com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance(); + } + setTablePrimaryKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SetTablePrimaryKey, + com.google.cloud.clouddms.v1.SetTablePrimaryKey.Builder, + com.google.cloud.clouddms.v1.SetTablePrimaryKeyOrBuilder>( + (com.google.cloud.clouddms.v1.SetTablePrimaryKey) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 115; + onChanged(); + return setTablePrimaryKeyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SinglePackageChange, + com.google.cloud.clouddms.v1.SinglePackageChange.Builder, + com.google.cloud.clouddms.v1.SinglePackageChangeOrBuilder> + singlePackageChangeBuilder_; + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singlePackageChange field is set. + */ + @java.lang.Override + public boolean hasSinglePackageChange() { + return detailsCase_ == 116; + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singlePackageChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SinglePackageChange getSinglePackageChange() { + if (singlePackageChangeBuilder_ == null) { + if (detailsCase_ == 116) { + return (com.google.cloud.clouddms.v1.SinglePackageChange) details_; + } + return com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance(); + } else { + if (detailsCase_ == 116) { + return singlePackageChangeBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSinglePackageChange(com.google.cloud.clouddms.v1.SinglePackageChange value) { + if (singlePackageChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + singlePackageChangeBuilder_.setMessage(value); + } + detailsCase_ = 116; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSinglePackageChange( + com.google.cloud.clouddms.v1.SinglePackageChange.Builder builderForValue) { + if (singlePackageChangeBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + singlePackageChangeBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 116; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSinglePackageChange( + com.google.cloud.clouddms.v1.SinglePackageChange value) { + if (singlePackageChangeBuilder_ == null) { + if (detailsCase_ == 116 + && details_ != com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.SinglePackageChange.newBuilder( + (com.google.cloud.clouddms.v1.SinglePackageChange) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 116) { + singlePackageChangeBuilder_.mergeFrom(value); + } else { + singlePackageChangeBuilder_.setMessage(value); + } + } + detailsCase_ = 116; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSinglePackageChange() { + if (singlePackageChangeBuilder_ == null) { + if (detailsCase_ == 116) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 116) { + detailsCase_ = 0; + details_ = null; + } + singlePackageChangeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SinglePackageChange.Builder + getSinglePackageChangeBuilder() { + return getSinglePackageChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SinglePackageChangeOrBuilder + getSinglePackageChangeOrBuilder() { + if ((detailsCase_ == 116) && (singlePackageChangeBuilder_ != null)) { + return singlePackageChangeBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 116) { + return (com.google.cloud.clouddms.v1.SinglePackageChange) details_; + } + return com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify how a single package is converted.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SinglePackageChange, + com.google.cloud.clouddms.v1.SinglePackageChange.Builder, + com.google.cloud.clouddms.v1.SinglePackageChangeOrBuilder> + getSinglePackageChangeFieldBuilder() { + if (singlePackageChangeBuilder_ == null) { + if (!(detailsCase_ == 116)) { + details_ = com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance(); + } + singlePackageChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SinglePackageChange, + com.google.cloud.clouddms.v1.SinglePackageChange.Builder, + com.google.cloud.clouddms.v1.SinglePackageChangeOrBuilder>( + (com.google.cloud.clouddms.v1.SinglePackageChange) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 116; + onChanged(); + return singlePackageChangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceSqlChange, + com.google.cloud.clouddms.v1.SourceSqlChange.Builder, + com.google.cloud.clouddms.v1.SourceSqlChangeOrBuilder> + sourceSqlChangeBuilder_; + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceSqlChange field is set. + */ + @java.lang.Override + public boolean hasSourceSqlChange() { + return detailsCase_ == 117; + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceSqlChange. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceSqlChange getSourceSqlChange() { + if (sourceSqlChangeBuilder_ == null) { + if (detailsCase_ == 117) { + return (com.google.cloud.clouddms.v1.SourceSqlChange) details_; + } + return com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance(); + } else { + if (detailsCase_ == 117) { + return sourceSqlChangeBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceSqlChange(com.google.cloud.clouddms.v1.SourceSqlChange value) { + if (sourceSqlChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + sourceSqlChangeBuilder_.setMessage(value); + } + detailsCase_ = 117; + return this; + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceSqlChange( + com.google.cloud.clouddms.v1.SourceSqlChange.Builder builderForValue) { + if (sourceSqlChangeBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + sourceSqlChangeBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 117; + return this; + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSourceSqlChange(com.google.cloud.clouddms.v1.SourceSqlChange value) { + if (sourceSqlChangeBuilder_ == null) { + if (detailsCase_ == 117 + && details_ != com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.SourceSqlChange.newBuilder( + (com.google.cloud.clouddms.v1.SourceSqlChange) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 117) { + sourceSqlChangeBuilder_.mergeFrom(value); + } else { + sourceSqlChangeBuilder_.setMessage(value); + } + } + detailsCase_ = 117; + return this; + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceSqlChange() { + if (sourceSqlChangeBuilder_ == null) { + if (detailsCase_ == 117) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 117) { + detailsCase_ = 0; + details_ = null; + } + sourceSqlChangeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SourceSqlChange.Builder getSourceSqlChangeBuilder() { + return getSourceSqlChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceSqlChangeOrBuilder getSourceSqlChangeOrBuilder() { + if ((detailsCase_ == 117) && (sourceSqlChangeBuilder_ != null)) { + return sourceSqlChangeBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 117) { + return (com.google.cloud.clouddms.v1.SourceSqlChange) details_; + } + return com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to change the sql code for an entity, for example,
+     * function, procedure.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceSqlChange, + com.google.cloud.clouddms.v1.SourceSqlChange.Builder, + com.google.cloud.clouddms.v1.SourceSqlChangeOrBuilder> + getSourceSqlChangeFieldBuilder() { + if (sourceSqlChangeBuilder_ == null) { + if (!(detailsCase_ == 117)) { + details_ = com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance(); + } + sourceSqlChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceSqlChange, + com.google.cloud.clouddms.v1.SourceSqlChange.Builder, + com.google.cloud.clouddms.v1.SourceSqlChangeOrBuilder>( + (com.google.cloud.clouddms.v1.SourceSqlChange) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 117; + onChanged(); + return sourceSqlChangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.FilterTableColumns, + com.google.cloud.clouddms.v1.FilterTableColumns.Builder, + com.google.cloud.clouddms.v1.FilterTableColumnsOrBuilder> + filterTableColumnsBuilder_; + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filterTableColumns field is set. + */ + @java.lang.Override + public boolean hasFilterTableColumns() { + return detailsCase_ == 118; + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterTableColumns. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FilterTableColumns getFilterTableColumns() { + if (filterTableColumnsBuilder_ == null) { + if (detailsCase_ == 118) { + return (com.google.cloud.clouddms.v1.FilterTableColumns) details_; + } + return com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance(); + } else { + if (detailsCase_ == 118) { + return filterTableColumnsBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilterTableColumns(com.google.cloud.clouddms.v1.FilterTableColumns value) { + if (filterTableColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + filterTableColumnsBuilder_.setMessage(value); + } + detailsCase_ = 118; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilterTableColumns( + com.google.cloud.clouddms.v1.FilterTableColumns.Builder builderForValue) { + if (filterTableColumnsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + filterTableColumnsBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 118; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFilterTableColumns(com.google.cloud.clouddms.v1.FilterTableColumns value) { + if (filterTableColumnsBuilder_ == null) { + if (detailsCase_ == 118 + && details_ != com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance()) { + details_ = + com.google.cloud.clouddms.v1.FilterTableColumns.newBuilder( + (com.google.cloud.clouddms.v1.FilterTableColumns) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 118) { + filterTableColumnsBuilder_.mergeFrom(value); + } else { + filterTableColumnsBuilder_.setMessage(value); + } + } + detailsCase_ = 118; + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFilterTableColumns() { + if (filterTableColumnsBuilder_ == null) { + if (detailsCase_ == 118) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 118) { + detailsCase_ = 0; + details_ = null; + } + filterTableColumnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.FilterTableColumns.Builder getFilterTableColumnsBuilder() { + return getFilterTableColumnsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FilterTableColumnsOrBuilder + getFilterTableColumnsOrBuilder() { + if ((detailsCase_ == 118) && (filterTableColumnsBuilder_ != null)) { + return filterTableColumnsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 118) { + return (com.google.cloud.clouddms.v1.FilterTableColumns) details_; + } + return com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Rule to specify the list of columns to include or exclude from
+     * a table.
+     * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.FilterTableColumns, + com.google.cloud.clouddms.v1.FilterTableColumns.Builder, + com.google.cloud.clouddms.v1.FilterTableColumnsOrBuilder> + getFilterTableColumnsFieldBuilder() { + if (filterTableColumnsBuilder_ == null) { + if (!(detailsCase_ == 118)) { + details_ = com.google.cloud.clouddms.v1.FilterTableColumns.getDefaultInstance(); + } + filterTableColumnsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.FilterTableColumns, + com.google.cloud.clouddms.v1.FilterTableColumns.Builder, + com.google.cloud.clouddms.v1.FilterTableColumnsOrBuilder>( + (com.google.cloud.clouddms.v1.FilterTableColumns) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 118; + onChanged(); + return filterTableColumnsBuilder_; + } + + @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.MappingRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MappingRule) + private static final com.google.cloud.clouddms.v1.MappingRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MappingRule(); + } + + public static com.google.cloud.clouddms.v1.MappingRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MappingRule 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.MappingRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleFilter.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleFilter.java new file mode 100644 index 000000000000..1acd9377347f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleFilter.java @@ -0,0 +1,1519 @@ +/* + * 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; + +/** + * + * + *
+ * A filter defining the entities that a mapping rule should be applied to.
+ * When more than one field is specified, the rule is applied only to
+ * entities which match all the fields.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MappingRuleFilter} + */ +public final class MappingRuleFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MappingRuleFilter) + MappingRuleFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use MappingRuleFilter.newBuilder() to construct. + private MappingRuleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MappingRuleFilter() { + parentEntity_ = ""; + entityNamePrefix_ = ""; + entityNameSuffix_ = ""; + entityNameContains_ = ""; + entities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MappingRuleFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRuleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRuleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MappingRuleFilter.class, + com.google.cloud.clouddms.v1.MappingRuleFilter.Builder.class); + } + + public static final int PARENT_ENTITY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentEntity_ = ""; + /** + * + * + *
+   * Optional. The rule should be applied to entities whose parent entity
+   * (fully qualified name) matches the given value.
+   * For example, if the rule applies to a table entity, the expected value
+   * should be a schema (schema). If the rule applies to a column or index
+   * entity, the expected value can be either a schema (schema) or a table
+   * (schema.table)
+   * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentEntity. + */ + @java.lang.Override + public java.lang.String getParentEntity() { + java.lang.Object ref = parentEntity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentEntity_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The rule should be applied to entities whose parent entity
+   * (fully qualified name) matches the given value.
+   * For example, if the rule applies to a table entity, the expected value
+   * should be a schema (schema). If the rule applies to a column or index
+   * entity, the expected value can be either a schema (schema) or a table
+   * (schema.table)
+   * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentEntity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentEntityBytes() { + java.lang.Object ref = parentEntity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_NAME_PREFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityNamePrefix_ = ""; + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * starts with the given prefix.
+   * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNamePrefix. + */ + @java.lang.Override + public java.lang.String getEntityNamePrefix() { + java.lang.Object ref = entityNamePrefix_; + 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(); + entityNamePrefix_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * starts with the given prefix.
+   * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNamePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityNamePrefixBytes() { + java.lang.Object ref = entityNamePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityNamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_NAME_SUFFIX_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityNameSuffix_ = ""; + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * ends with the given suffix.
+   * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNameSuffix. + */ + @java.lang.Override + public java.lang.String getEntityNameSuffix() { + java.lang.Object ref = entityNameSuffix_; + 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(); + entityNameSuffix_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * ends with the given suffix.
+   * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNameSuffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityNameSuffixBytes() { + java.lang.Object ref = entityNameSuffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityNameSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_NAME_CONTAINS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityNameContains_ = ""; + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * contains the given string.
+   * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNameContains. + */ + @java.lang.Override + public java.lang.String getEntityNameContains() { + java.lang.Object ref = entityNameContains_; + 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(); + entityNameContains_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * contains the given string.
+   * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNameContains. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityNameContainsBytes() { + java.lang.Object ref = entityNameContains_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityNameContains_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITIES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList entities_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the entities. + */ + public com.google.protobuf.ProtocolStringList getEntitiesList() { + return entities_; + } + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of entities. + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The entities at the given index. + */ + public java.lang.String getEntities(int index) { + return entities_.get(index); + } + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the entities at the given index. + */ + public com.google.protobuf.ByteString getEntitiesBytes(int index) { + return entities_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEntity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parentEntity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityNamePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityNamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityNameSuffix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entityNameSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityNameContains_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, entityNameContains_); + } + for (int i = 0; i < entities_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, entities_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEntity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parentEntity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityNamePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityNamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityNameSuffix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entityNameSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityNameContains_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, entityNameContains_); + } + { + int dataSize = 0; + for (int i = 0; i < entities_.size(); i++) { + dataSize += computeStringSizeNoTag(entities_.getRaw(i)); + } + size += dataSize; + size += 1 * getEntitiesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.MappingRuleFilter)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MappingRuleFilter other = + (com.google.cloud.clouddms.v1.MappingRuleFilter) obj; + + if (!getParentEntity().equals(other.getParentEntity())) return false; + if (!getEntityNamePrefix().equals(other.getEntityNamePrefix())) return false; + if (!getEntityNameSuffix().equals(other.getEntityNameSuffix())) return false; + if (!getEntityNameContains().equals(other.getEntityNameContains())) return false; + if (!getEntitiesList().equals(other.getEntitiesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getParentEntity().hashCode(); + hash = (37 * hash) + ENTITY_NAME_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getEntityNamePrefix().hashCode(); + hash = (37 * hash) + ENTITY_NAME_SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getEntityNameSuffix().hashCode(); + hash = (37 * hash) + ENTITY_NAME_CONTAINS_FIELD_NUMBER; + hash = (53 * hash) + getEntityNameContains().hashCode(); + if (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.MappingRuleFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MappingRuleFilter 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.MappingRuleFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MappingRuleFilter 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.MappingRuleFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MappingRuleFilter 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.MappingRuleFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MappingRuleFilter 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.MappingRuleFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MappingRuleFilter 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.MappingRuleFilter 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.MappingRuleFilter 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.MappingRuleFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A filter defining the entities that a mapping rule should be applied to.
+   * When more than one field is specified, the rule is applied only to
+   * entities which match all the fields.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MappingRuleFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MappingRuleFilter) + com.google.cloud.clouddms.v1.MappingRuleFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRuleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MappingRuleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MappingRuleFilter.class, + com.google.cloud.clouddms.v1.MappingRuleFilter.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MappingRuleFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parentEntity_ = ""; + entityNamePrefix_ = ""; + entityNameSuffix_ = ""; + entityNameContains_ = ""; + entities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_MappingRuleFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRuleFilter getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MappingRuleFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRuleFilter build() { + com.google.cloud.clouddms.v1.MappingRuleFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MappingRuleFilter buildPartial() { + com.google.cloud.clouddms.v1.MappingRuleFilter result = + new com.google.cloud.clouddms.v1.MappingRuleFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MappingRuleFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parentEntity_ = parentEntity_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityNamePrefix_ = entityNamePrefix_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityNameSuffix_ = entityNameSuffix_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entityNameContains_ = entityNameContains_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + entities_.makeImmutable(); + result.entities_ = entities_; + } + } + + @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.MappingRuleFilter) { + return mergeFrom((com.google.cloud.clouddms.v1.MappingRuleFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MappingRuleFilter other) { + if (other == com.google.cloud.clouddms.v1.MappingRuleFilter.getDefaultInstance()) return this; + if (!other.getParentEntity().isEmpty()) { + parentEntity_ = other.parentEntity_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEntityNamePrefix().isEmpty()) { + entityNamePrefix_ = other.entityNamePrefix_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEntityNameSuffix().isEmpty()) { + entityNameSuffix_ = other.entityNameSuffix_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEntityNameContains().isEmpty()) { + entityNameContains_ = other.entityNameContains_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ |= 0x00000010; + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + 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: + { + parentEntity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + entityNamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + entityNameSuffix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + entityNameContains_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEntitiesIsMutable(); + entities_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parentEntity_ = ""; + /** + * + * + *
+     * Optional. The rule should be applied to entities whose parent entity
+     * (fully qualified name) matches the given value.
+     * For example, if the rule applies to a table entity, the expected value
+     * should be a schema (schema). If the rule applies to a column or index
+     * entity, the expected value can be either a schema (schema) or a table
+     * (schema.table)
+     * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentEntity. + */ + public java.lang.String getParentEntity() { + java.lang.Object ref = parentEntity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentEntity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose parent entity
+     * (fully qualified name) matches the given value.
+     * For example, if the rule applies to a table entity, the expected value
+     * should be a schema (schema). If the rule applies to a column or index
+     * entity, the expected value can be either a schema (schema) or a table
+     * (schema.table)
+     * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentEntity. + */ + public com.google.protobuf.ByteString getParentEntityBytes() { + java.lang.Object ref = parentEntity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose parent entity
+     * (fully qualified name) matches the given value.
+     * For example, if the rule applies to a table entity, the expected value
+     * should be a schema (schema). If the rule applies to a column or index
+     * entity, the expected value can be either a schema (schema) or a table
+     * (schema.table)
+     * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The parentEntity to set. + * @return This builder for chaining. + */ + public Builder setParentEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parentEntity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose parent entity
+     * (fully qualified name) matches the given value.
+     * For example, if the rule applies to a table entity, the expected value
+     * should be a schema (schema). If the rule applies to a column or index
+     * entity, the expected value can be either a schema (schema) or a table
+     * (schema.table)
+     * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearParentEntity() { + parentEntity_ = getDefaultInstance().getParentEntity(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose parent entity
+     * (fully qualified name) matches the given value.
+     * For example, if the rule applies to a table entity, the expected value
+     * should be a schema (schema). If the rule applies to a column or index
+     * entity, the expected value can be either a schema (schema) or a table
+     * (schema.table)
+     * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for parentEntity to set. + * @return This builder for chaining. + */ + public Builder setParentEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentEntity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object entityNamePrefix_ = ""; + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * starts with the given prefix.
+     * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNamePrefix. + */ + public java.lang.String getEntityNamePrefix() { + java.lang.Object ref = entityNamePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityNamePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * starts with the given prefix.
+     * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNamePrefix. + */ + public com.google.protobuf.ByteString getEntityNamePrefixBytes() { + java.lang.Object ref = entityNamePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityNamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * starts with the given prefix.
+     * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entityNamePrefix to set. + * @return This builder for chaining. + */ + public Builder setEntityNamePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityNamePrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * starts with the given prefix.
+     * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntityNamePrefix() { + entityNamePrefix_ = getDefaultInstance().getEntityNamePrefix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * starts with the given prefix.
+     * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entityNamePrefix to set. + * @return This builder for chaining. + */ + public Builder setEntityNamePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityNamePrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object entityNameSuffix_ = ""; + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * ends with the given suffix.
+     * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNameSuffix. + */ + public java.lang.String getEntityNameSuffix() { + java.lang.Object ref = entityNameSuffix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityNameSuffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * ends with the given suffix.
+     * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNameSuffix. + */ + public com.google.protobuf.ByteString getEntityNameSuffixBytes() { + java.lang.Object ref = entityNameSuffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityNameSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * ends with the given suffix.
+     * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entityNameSuffix to set. + * @return This builder for chaining. + */ + public Builder setEntityNameSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityNameSuffix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * ends with the given suffix.
+     * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntityNameSuffix() { + entityNameSuffix_ = getDefaultInstance().getEntityNameSuffix(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * ends with the given suffix.
+     * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entityNameSuffix to set. + * @return This builder for chaining. + */ + public Builder setEntityNameSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityNameSuffix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object entityNameContains_ = ""; + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * contains the given string.
+     * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNameContains. + */ + public java.lang.String getEntityNameContains() { + java.lang.Object ref = entityNameContains_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityNameContains_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * contains the given string.
+     * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNameContains. + */ + public com.google.protobuf.ByteString getEntityNameContainsBytes() { + java.lang.Object ref = entityNameContains_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityNameContains_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * contains the given string.
+     * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entityNameContains to set. + * @return This builder for chaining. + */ + public Builder setEntityNameContains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityNameContains_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * contains the given string.
+     * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntityNameContains() { + entityNameContains_ = getDefaultInstance().getEntityNameContains(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to entities whose non-qualified name
+     * contains the given string.
+     * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entityNameContains to set. + * @return This builder for chaining. + */ + public Builder setEntityNameContainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityNameContains_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList entities_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEntitiesIsMutable() { + if (!entities_.isModifiable()) { + entities_ = new com.google.protobuf.LazyStringArrayList(entities_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the entities. + */ + public com.google.protobuf.ProtocolStringList getEntitiesList() { + entities_.makeImmutable(); + return entities_; + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of entities. + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The entities at the given index. + */ + public java.lang.String getEntities(int index) { + return entities_.get(index); + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the entities at the given index. + */ + public com.google.protobuf.ByteString getEntitiesBytes(int index) { + return entities_.getByteString(index); + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The entities to set. + * @return This builder for chaining. + */ + public Builder setEntities(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entities to add. + * @return This builder for chaining. + */ + public Builder addEntities(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The entities to add. + * @return This builder for chaining. + */ + public Builder addAllEntities(java.lang.Iterable values) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entities_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntities() { + entities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The rule should be applied to specific entities defined by their
+     * fully qualified names.
+     * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the entities to add. + * @return This builder for chaining. + */ + public Builder addEntitiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEntitiesIsMutable(); + entities_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MappingRuleFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MappingRuleFilter) + private static final com.google.cloud.clouddms.v1.MappingRuleFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MappingRuleFilter(); + } + + public static com.google.cloud.clouddms.v1.MappingRuleFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MappingRuleFilter 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.MappingRuleFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleFilterOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleFilterOrBuilder.java new file mode 100644 index 000000000000..531e5268a4b8 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleFilterOrBuilder.java @@ -0,0 +1,196 @@ +/* + * 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 MappingRuleFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MappingRuleFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The rule should be applied to entities whose parent entity
+   * (fully qualified name) matches the given value.
+   * For example, if the rule applies to a table entity, the expected value
+   * should be a schema (schema). If the rule applies to a column or index
+   * entity, the expected value can be either a schema (schema) or a table
+   * (schema.table)
+   * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentEntity. + */ + java.lang.String getParentEntity(); + /** + * + * + *
+   * Optional. The rule should be applied to entities whose parent entity
+   * (fully qualified name) matches the given value.
+   * For example, if the rule applies to a table entity, the expected value
+   * should be a schema (schema). If the rule applies to a column or index
+   * entity, the expected value can be either a schema (schema) or a table
+   * (schema.table)
+   * 
+ * + * string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentEntity. + */ + com.google.protobuf.ByteString getParentEntityBytes(); + + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * starts with the given prefix.
+   * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNamePrefix. + */ + java.lang.String getEntityNamePrefix(); + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * starts with the given prefix.
+   * 
+ * + * string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNamePrefix. + */ + com.google.protobuf.ByteString getEntityNamePrefixBytes(); + + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * ends with the given suffix.
+   * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNameSuffix. + */ + java.lang.String getEntityNameSuffix(); + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * ends with the given suffix.
+   * 
+ * + * string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNameSuffix. + */ + com.google.protobuf.ByteString getEntityNameSuffixBytes(); + + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * contains the given string.
+   * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityNameContains. + */ + java.lang.String getEntityNameContains(); + /** + * + * + *
+   * Optional. The rule should be applied to entities whose non-qualified name
+   * contains the given string.
+   * 
+ * + * string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityNameContains. + */ + com.google.protobuf.ByteString getEntityNameContainsBytes(); + + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the entities. + */ + java.util.List getEntitiesList(); + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of entities. + */ + int getEntitiesCount(); + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The entities at the given index. + */ + java.lang.String getEntities(int index); + /** + * + * + *
+   * Optional. The rule should be applied to specific entities defined by their
+   * fully qualified names.
+   * 
+ * + * repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the entities at the given index. + */ + com.google.protobuf.ByteString getEntitiesBytes(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleName.java new file mode 100644 index 000000000000..2767b0f4caa7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleName.java @@ -0,0 +1,269 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MappingRuleName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CONVERSION_WORKSPACE_MAPPING_RULE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}/mappingRules/{mapping_rule}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String conversionWorkspace; + private final String mappingRule; + + @Deprecated + protected MappingRuleName() { + project = null; + location = null; + conversionWorkspace = null; + mappingRule = null; + } + + private MappingRuleName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + conversionWorkspace = Preconditions.checkNotNull(builder.getConversionWorkspace()); + mappingRule = Preconditions.checkNotNull(builder.getMappingRule()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConversionWorkspace() { + return conversionWorkspace; + } + + public String getMappingRule() { + return mappingRule; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MappingRuleName of( + String project, String location, String conversionWorkspace, String mappingRule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConversionWorkspace(conversionWorkspace) + .setMappingRule(mappingRule) + .build(); + } + + public static String format( + String project, String location, String conversionWorkspace, String mappingRule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConversionWorkspace(conversionWorkspace) + .setMappingRule(mappingRule) + .build() + .toString(); + } + + public static MappingRuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CONVERSION_WORKSPACE_MAPPING_RULE.validatedMatch( + formattedString, "MappingRuleName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("conversion_workspace"), + matchMap.get("mapping_rule")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MappingRuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CONVERSION_WORKSPACE_MAPPING_RULE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (conversionWorkspace != null) { + fieldMapBuilder.put("conversion_workspace", conversionWorkspace); + } + if (mappingRule != null) { + fieldMapBuilder.put("mapping_rule", mappingRule); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CONVERSION_WORKSPACE_MAPPING_RULE.instantiate( + "project", + project, + "location", + location, + "conversion_workspace", + conversionWorkspace, + "mapping_rule", + mappingRule); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + MappingRuleName that = ((MappingRuleName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.conversionWorkspace, that.conversionWorkspace) + && Objects.equals(this.mappingRule, that.mappingRule); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(conversionWorkspace); + h *= 1000003; + h ^= Objects.hashCode(mappingRule); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}/mappingRules/{mapping_rule}. + */ + public static class Builder { + private String project; + private String location; + private String conversionWorkspace; + private String mappingRule; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConversionWorkspace() { + return conversionWorkspace; + } + + public String getMappingRule() { + return mappingRule; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setConversionWorkspace(String conversionWorkspace) { + this.conversionWorkspace = conversionWorkspace; + return this; + } + + public Builder setMappingRule(String mappingRule) { + this.mappingRule = mappingRule; + return this; + } + + private Builder(MappingRuleName mappingRuleName) { + this.project = mappingRuleName.project; + this.location = mappingRuleName.location; + this.conversionWorkspace = mappingRuleName.conversionWorkspace; + this.mappingRule = mappingRuleName.mappingRule; + } + + public MappingRuleName build() { + return new MappingRuleName(this); + } + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleOrBuilder.java new file mode 100644 index 000000000000..af60b9d5a615 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleOrBuilder.java @@ -0,0 +1,736 @@ +/* + * 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 MappingRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MappingRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Full name of the mapping rule resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Full name of the mapping rule resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A human readable name
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. A human readable name
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The mapping rule state
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Optional. The mapping rule state
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRule.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + com.google.cloud.clouddms.v1.MappingRule.State getState(); + + /** + * + * + *
+   * Required. The rule scope
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for ruleScope. + */ + int getRuleScopeValue(); + /** + * + * + *
+   * Required. The rule scope
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEntityType rule_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ruleScope. + */ + com.google.cloud.clouddms.v1.DatabaseEntityType getRuleScope(); + + /** + * + * + *
+   * Required. The rule filter
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+   * Required. The rule filter
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filter. + */ + com.google.cloud.clouddms.v1.MappingRuleFilter getFilter(); + /** + * + * + *
+   * Required. The rule filter
+   * 
+ * + * + * .google.cloud.clouddms.v1.MappingRuleFilter filter = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.MappingRuleFilterOrBuilder getFilterOrBuilder(); + + /** + * + * + *
+   * Required. The order in which the rule is applied. Lower order rules are
+   * applied before higher value rules so they may end up being overridden.
+   * 
+ * + * int64 rule_order = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ruleOrder. + */ + long getRuleOrder(); + + /** + * + * + *
+   * Output only. The revision ID of the mapping rule.
+   * A new revision is committed whenever the mapping rule is changed in any
+   * way. The format is an 8-character hexadecimal string.
+   * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
+   * Output only. The revision ID of the mapping rule.
+   * A new revision is committed whenever the mapping rule is changed in any
+   * way. The format is an 8-character hexadecimal string.
+   * 
+ * + * string revision_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + boolean hasRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + com.google.protobuf.Timestamp getRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how a single entity should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singleEntityRename field is set. + */ + boolean hasSingleEntityRename(); + /** + * + * + *
+   * Optional. Rule to specify how a single entity should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singleEntityRename. + */ + com.google.cloud.clouddms.v1.SingleEntityRename getSingleEntityRename(); + /** + * + * + *
+   * Optional. Rule to specify how a single entity should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleEntityRename single_entity_rename = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SingleEntityRenameOrBuilder getSingleEntityRenameOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiEntityRename field is set. + */ + boolean hasMultiEntityRename(); + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiEntityRename. + */ + com.google.cloud.clouddms.v1.MultiEntityRename getMultiEntityRename(); + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be renamed.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiEntityRename multi_entity_rename = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.MultiEntityRenameOrBuilder getMultiEntityRenameOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be relocated into
+   * a different schema.
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the entityMove field is set. + */ + boolean hasEntityMove(); + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be relocated into
+   * a different schema.
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The entityMove. + */ + com.google.cloud.clouddms.v1.EntityMove getEntityMove(); + /** + * + * + *
+   * Optional. Rule to specify how multiple entities should be relocated into
+   * a different schema.
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityMove entity_move = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.EntityMoveOrBuilder getEntityMoveOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how a single column is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singleColumnChange field is set. + */ + boolean hasSingleColumnChange(); + /** + * + * + *
+   * Optional. Rule to specify how a single column is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singleColumnChange. + */ + com.google.cloud.clouddms.v1.SingleColumnChange getSingleColumnChange(); + /** + * + * + *
+   * Optional. Rule to specify how a single column is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SingleColumnChange single_column_change = 106 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SingleColumnChangeOrBuilder getSingleColumnChangeOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how multiple columns should be converted to a
+   * different data type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiColumnDataTypeChange field is set. + */ + boolean hasMultiColumnDataTypeChange(); + /** + * + * + *
+   * Optional. Rule to specify how multiple columns should be converted to a
+   * different data type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiColumnDataTypeChange. + */ + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange getMultiColumnDataTypeChange(); + /** + * + * + *
+   * Optional. Rule to specify how multiple columns should be converted to a
+   * different data type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MultiColumnDatatypeChange multi_column_data_type_change = 107 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.MultiColumnDatatypeChangeOrBuilder + getMultiColumnDataTypeChangeOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how the data contained in a column should be
+   * transformed (such as trimmed, rounded, etc) provided that the data meets
+   * certain criteria.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditionalColumnSetValue field is set. + */ + boolean hasConditionalColumnSetValue(); + /** + * + * + *
+   * Optional. Rule to specify how the data contained in a column should be
+   * transformed (such as trimmed, rounded, etc) provided that the data meets
+   * certain criteria.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditionalColumnSetValue. + */ + com.google.cloud.clouddms.v1.ConditionalColumnSetValue getConditionalColumnSetValue(); + /** + * + * + *
+   * Optional. Rule to specify how the data contained in a column should be
+   * transformed (such as trimmed, rounded, etc) provided that the data meets
+   * certain criteria.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConditionalColumnSetValue conditional_column_set_value = 108 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.ConditionalColumnSetValueOrBuilder + getConditionalColumnSetValueOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how multiple tables should be converted with an
+   * additional rowid column.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the convertRowidColumn field is set. + */ + boolean hasConvertRowidColumn(); + /** + * + * + *
+   * Optional. Rule to specify how multiple tables should be converted with an
+   * additional rowid column.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The convertRowidColumn. + */ + com.google.cloud.clouddms.v1.ConvertRowIdToColumn getConvertRowidColumn(); + /** + * + * + *
+   * Optional. Rule to specify how multiple tables should be converted with an
+   * additional rowid column.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConvertRowIdToColumn convert_rowid_column = 114 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.ConvertRowIdToColumnOrBuilder getConvertRowidColumnOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify the primary key for a table
+   * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the setTablePrimaryKey field is set. + */ + boolean hasSetTablePrimaryKey(); + /** + * + * + *
+   * Optional. Rule to specify the primary key for a table
+   * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The setTablePrimaryKey. + */ + com.google.cloud.clouddms.v1.SetTablePrimaryKey getSetTablePrimaryKey(); + /** + * + * + *
+   * Optional. Rule to specify the primary key for a table
+   * 
+ * + * + * .google.cloud.clouddms.v1.SetTablePrimaryKey set_table_primary_key = 115 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SetTablePrimaryKeyOrBuilder getSetTablePrimaryKeyOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify how a single package is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the singlePackageChange field is set. + */ + boolean hasSinglePackageChange(); + /** + * + * + *
+   * Optional. Rule to specify how a single package is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The singlePackageChange. + */ + com.google.cloud.clouddms.v1.SinglePackageChange getSinglePackageChange(); + /** + * + * + *
+   * Optional. Rule to specify how a single package is converted.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SinglePackageChange single_package_change = 116 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SinglePackageChangeOrBuilder getSinglePackageChangeOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to change the sql code for an entity, for example,
+   * function, procedure.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceSqlChange field is set. + */ + boolean hasSourceSqlChange(); + /** + * + * + *
+   * Optional. Rule to change the sql code for an entity, for example,
+   * function, procedure.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceSqlChange. + */ + com.google.cloud.clouddms.v1.SourceSqlChange getSourceSqlChange(); + /** + * + * + *
+   * Optional. Rule to change the sql code for an entity, for example,
+   * function, procedure.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceSqlChange source_sql_change = 117 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SourceSqlChangeOrBuilder getSourceSqlChangeOrBuilder(); + + /** + * + * + *
+   * Optional. Rule to specify the list of columns to include or exclude from
+   * a table.
+   * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filterTableColumns field is set. + */ + boolean hasFilterTableColumns(); + /** + * + * + *
+   * Optional. Rule to specify the list of columns to include or exclude from
+   * a table.
+   * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterTableColumns. + */ + com.google.cloud.clouddms.v1.FilterTableColumns getFilterTableColumns(); + /** + * + * + *
+   * Optional. Rule to specify the list of columns to include or exclude from
+   * a table.
+   * 
+ * + * + * .google.cloud.clouddms.v1.FilterTableColumns filter_table_columns = 118 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.FilterTableColumnsOrBuilder getFilterTableColumnsOrBuilder(); + + com.google.cloud.clouddms.v1.MappingRule.DetailsCase getDetailsCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MaterializedViewEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MaterializedViewEntity.java new file mode 100644 index 000000000000..31c6148dee6b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MaterializedViewEntity.java @@ -0,0 +1,889 @@ +/* + * 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; + +/** + * + * + *
+ * MaterializedView's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MaterializedViewEntity} + */ +public final class MaterializedViewEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MaterializedViewEntity) + MaterializedViewEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaterializedViewEntity.newBuilder() to construct. + private MaterializedViewEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaterializedViewEntity() { + sqlCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaterializedViewEntity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MaterializedViewEntity.class, + com.google.cloud.clouddms.v1.MaterializedViewEntity.Builder.class); + } + + public static final int SQL_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlCode_ = ""; + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + @java.lang.Override + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 2; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlCode_); + } + if (customFeatures_ != null) { + output.writeMessage(2, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlCode_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.MaterializedViewEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MaterializedViewEntity other = + (com.google.cloud.clouddms.v1.MaterializedViewEntity) obj; + + if (!getSqlCode().equals(other.getSqlCode())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSqlCode().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.MaterializedViewEntity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MaterializedViewEntity 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.MaterializedViewEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MaterializedViewEntity 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.MaterializedViewEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MaterializedViewEntity 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.MaterializedViewEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MaterializedViewEntity 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.MaterializedViewEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MaterializedViewEntity 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.MaterializedViewEntity 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.MaterializedViewEntity 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.MaterializedViewEntity 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; + } + /** + * + * + *
+   * MaterializedView's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MaterializedViewEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MaterializedViewEntity) + com.google.cloud.clouddms.v1.MaterializedViewEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MaterializedViewEntity.class, + com.google.cloud.clouddms.v1.MaterializedViewEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MaterializedViewEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sqlCode_ = ""; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MaterializedViewEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MaterializedViewEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MaterializedViewEntity build() { + com.google.cloud.clouddms.v1.MaterializedViewEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MaterializedViewEntity buildPartial() { + com.google.cloud.clouddms.v1.MaterializedViewEntity result = + new com.google.cloud.clouddms.v1.MaterializedViewEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MaterializedViewEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sqlCode_ = sqlCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.MaterializedViewEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.MaterializedViewEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MaterializedViewEntity other) { + if (other == com.google.cloud.clouddms.v1.MaterializedViewEntity.getDefaultInstance()) + return this; + if (!other.getSqlCode().isEmpty()) { + sqlCode_ = other.sqlCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sqlCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sqlCode_ = ""; + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @param value The sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearSqlCode() { + sqlCode_ = getDefaultInstance().getSqlCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @param value The bytes for sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000002); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.MaterializedViewEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MaterializedViewEntity) + private static final com.google.cloud.clouddms.v1.MaterializedViewEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MaterializedViewEntity(); + } + + public static com.google.cloud.clouddms.v1.MaterializedViewEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaterializedViewEntity 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.MaterializedViewEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MaterializedViewEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MaterializedViewEntityOrBuilder.java new file mode 100644 index 000000000000..b1ae442a3488 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MaterializedViewEntityOrBuilder.java @@ -0,0 +1,85 @@ +/* + * 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 MaterializedViewEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MaterializedViewEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + java.lang.String getSqlCode(); + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + com.google.protobuf.ByteString getSqlCodeBytes(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java index efdbffc76420..cbdd00f1fd44 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java @@ -2744,6 +2744,839 @@ public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags getDefaultInstanceFor } } + public interface PerformanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Initial dump parallelism level.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @return The enum numeric value on the wire for dumpParallelLevel. + */ + int getDumpParallelLevelValue(); + /** + * + * + *
+     * Initial dump parallelism level.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @return The dumpParallelLevel. + */ + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel + getDumpParallelLevel(); + } + /** + * + * + *
+   * Performance configuration definition.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob.PerformanceConfig} + */ + public static final class PerformanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) + PerformanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PerformanceConfig.newBuilder() to construct. + private PerformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PerformanceConfig() { + dumpParallelLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PerformanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.class, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.Builder.class); + } + + /** + * + * + *
+     * Describes the parallelism level during initial dump.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel} + */ + public enum DumpParallelLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unknown dump parallel level. Will be defaulted to OPTIMAL.
+       * 
+ * + * DUMP_PARALLEL_LEVEL_UNSPECIFIED = 0; + */ + DUMP_PARALLEL_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+       * Minimal parallel level.
+       * 
+ * + * MIN = 1; + */ + MIN(1), + /** + * + * + *
+       * Optimal parallel level.
+       * 
+ * + * OPTIMAL = 2; + */ + OPTIMAL(2), + /** + * + * + *
+       * Maximum parallel level.
+       * 
+ * + * MAX = 3; + */ + MAX(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unknown dump parallel level. Will be defaulted to OPTIMAL.
+       * 
+ * + * DUMP_PARALLEL_LEVEL_UNSPECIFIED = 0; + */ + public static final int DUMP_PARALLEL_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Minimal parallel level.
+       * 
+ * + * MIN = 1; + */ + public static final int MIN_VALUE = 1; + /** + * + * + *
+       * Optimal parallel level.
+       * 
+ * + * OPTIMAL = 2; + */ + public static final int OPTIMAL_VALUE = 2; + /** + * + * + *
+       * Maximum parallel level.
+       * 
+ * + * MAX = 3; + */ + public static final int MAX_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DumpParallelLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DumpParallelLevel forNumber(int value) { + switch (value) { + case 0: + return DUMP_PARALLEL_LEVEL_UNSPECIFIED; + case 1: + return MIN; + case 2: + return OPTIMAL; + case 3: + return MAX; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DumpParallelLevel findValueByNumber(int number) { + return DumpParallelLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DumpParallelLevel[] VALUES = values(); + + public static DumpParallelLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DumpParallelLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel) + } + + public static final int DUMP_PARALLEL_LEVEL_FIELD_NUMBER = 1; + private int dumpParallelLevel_ = 0; + /** + * + * + *
+     * Initial dump parallelism level.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @return The enum numeric value on the wire for dumpParallelLevel. + */ + @java.lang.Override + public int getDumpParallelLevelValue() { + return dumpParallelLevel_; + } + /** + * + * + *
+     * Initial dump parallelism level.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @return The dumpParallelLevel. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel + getDumpParallelLevel() { + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel result = + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel.forNumber( + dumpParallelLevel_); + return result == null + ? com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dumpParallelLevel_ + != com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel + .DUMP_PARALLEL_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, dumpParallelLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dumpParallelLevel_ + != com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel + .DUMP_PARALLEL_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, dumpParallelLevel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig other = + (com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) obj; + + if (dumpParallelLevel_ != other.dumpParallelLevel_) 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) + DUMP_PARALLEL_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + dumpParallelLevel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig 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; + } + /** + * + * + *
+     * Performance configuration definition.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob.PerformanceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.class, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dumpParallelLevel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_PerformanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig build() { + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig buildPartial() { + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig result = + new com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dumpParallelLevel_ = dumpParallelLevel_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) { + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig other) { + if (other + == com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.getDefaultInstance()) + return this; + if (other.dumpParallelLevel_ != 0) { + setDumpParallelLevelValue(other.getDumpParallelLevelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + dumpParallelLevel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int dumpParallelLevel_ = 0; + /** + * + * + *
+       * Initial dump parallelism level.
+       * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @return The enum numeric value on the wire for dumpParallelLevel. + */ + @java.lang.Override + public int getDumpParallelLevelValue() { + return dumpParallelLevel_; + } + /** + * + * + *
+       * Initial dump parallelism level.
+       * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @param value The enum numeric value on the wire for dumpParallelLevel to set. + * @return This builder for chaining. + */ + public Builder setDumpParallelLevelValue(int value) { + dumpParallelLevel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Initial dump parallelism level.
+       * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @return The dumpParallelLevel. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel + getDumpParallelLevel() { + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel result = + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel.forNumber( + dumpParallelLevel_); + return result == null + ? com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Initial dump parallelism level.
+       * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @param value The dumpParallelLevel to set. + * @return This builder for chaining. + */ + public Builder setDumpParallelLevel( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + dumpParallelLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Initial dump parallelism level.
+       * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.DumpParallelLevel dump_parallel_level = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearDumpParallelLevel() { + bitField0_ = (bitField0_ & ~0x00000001); + dumpParallelLevel_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MigrationJob.PerformanceConfig) + private static final com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig(); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PerformanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int connectivityCase_ = 0; @SuppressWarnings("serial") @@ -4044,6 +4877,66 @@ public com.google.protobuf.ByteString getCmekKeyNameBytes() { } } + public static final int PERFORMANCE_CONFIG_FIELD_NUMBER = 22; + private com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performanceConfig_; + /** + * + * + *
+   * Optional. Data dump parallelism settings used by the migration.
+   * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the performanceConfig field is set. + */ + @java.lang.Override + public boolean hasPerformanceConfig() { + return performanceConfig_ != null; + } + /** + * + * + *
+   * Optional. Data dump parallelism settings used by the migration.
+   * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The performanceConfig. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig getPerformanceConfig() { + return performanceConfig_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.getDefaultInstance() + : performanceConfig_; + } + /** + * + * + *
+   * Optional. Data dump parallelism settings used by the migration.
+   * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfigOrBuilder + getPerformanceConfigOrBuilder() { + return performanceConfig_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.getDefaultInstance() + : performanceConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4117,6 +5010,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cmekKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, cmekKeyName_); } + if (performanceConfig_ != null) { + output.writeMessage(22, getPerformanceConfig()); + } if (connectivityCase_ == 101) { output.writeMessage(101, (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); } @@ -4204,6 +5100,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cmekKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, cmekKeyName_); } + if (performanceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getPerformanceConfig()); + } if (connectivityCase_ == 101) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -4282,6 +5181,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getFilter().equals(other.getFilter())) return false; if (!getCmekKeyName().equals(other.getCmekKeyName())) return false; + if (hasPerformanceConfig() != other.hasPerformanceConfig()) return false; + if (hasPerformanceConfig()) { + if (!getPerformanceConfig().equals(other.getPerformanceConfig())) return false; + } if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 101: @@ -4367,6 +5270,10 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + CMEK_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getCmekKeyName().hashCode(); + if (hasPerformanceConfig()) { + hash = (37 * hash) + PERFORMANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPerformanceConfig().hashCode(); + } switch (connectivityCase_) { case 101: hash = (37 * hash) + REVERSE_SSH_CONNECTIVITY_FIELD_NUMBER; @@ -4607,6 +5514,11 @@ public Builder clear() { } filter_ = ""; cmekKeyName_ = ""; + performanceConfig_ = null; + if (performanceConfigBuilder_ != null) { + performanceConfigBuilder_.dispose(); + performanceConfigBuilder_ = null; + } connectivityCase_ = 0; connectivity_ = null; return this; @@ -4714,6 +5626,12 @@ private void buildPartial0(com.google.cloud.clouddms.v1.MigrationJob result) { if (((from_bitField0_ & 0x00400000) != 0)) { result.cmekKeyName_ = cmekKeyName_; } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.performanceConfig_ = + performanceConfigBuilder_ == null + ? performanceConfig_ + : performanceConfigBuilder_.build(); + } } private void buildPartialOneofs(com.google.cloud.clouddms.v1.MigrationJob result) { @@ -4848,6 +5766,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob other) { bitField0_ |= 0x00400000; onChanged(); } + if (other.hasPerformanceConfig()) { + mergePerformanceConfig(other.getPerformanceConfig()); + } switch (other.getConnectivityCase()) { case REVERSE_SSH_CONNECTIVITY: { @@ -5023,6 +5944,13 @@ public Builder mergeFrom( bitField0_ |= 0x00400000; break; } // case 170 + case 178: + { + input.readMessage( + getPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 178 case 810: { input.readMessage( @@ -8803,6 +9731,223 @@ public Builder setCmekKeyNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.Builder, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfigOrBuilder> + performanceConfigBuilder_; + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the performanceConfig field is set. + */ + public boolean hasPerformanceConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The performanceConfig. + */ + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig getPerformanceConfig() { + if (performanceConfigBuilder_ == null) { + return performanceConfig_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.getDefaultInstance() + : performanceConfig_; + } else { + return performanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPerformanceConfig( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig value) { + if (performanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + performanceConfig_ = value; + } else { + performanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPerformanceConfig( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.Builder builderForValue) { + if (performanceConfigBuilder_ == null) { + performanceConfig_ = builderForValue.build(); + } else { + performanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePerformanceConfig( + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig value) { + if (performanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && performanceConfig_ != null + && performanceConfig_ + != com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig + .getDefaultInstance()) { + getPerformanceConfigBuilder().mergeFrom(value); + } else { + performanceConfig_ = value; + } + } else { + performanceConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPerformanceConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + performanceConfig_ = null; + if (performanceConfigBuilder_ != null) { + performanceConfigBuilder_.dispose(); + performanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.Builder + getPerformanceConfigBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getPerformanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfigOrBuilder + getPerformanceConfigOrBuilder() { + if (performanceConfigBuilder_ != null) { + return performanceConfigBuilder_.getMessageOrBuilder(); + } else { + return performanceConfig_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.getDefaultInstance() + : performanceConfig_; + } + } + /** + * + * + *
+     * Optional. Data dump parallelism settings used by the migration.
+     * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.Builder, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfigOrBuilder> + getPerformanceConfigFieldBuilder() { + if (performanceConfigBuilder_ == null) { + performanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig.Builder, + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfigOrBuilder>( + getPerformanceConfig(), getParentForChildren(), isClean()); + performanceConfig_ = null; + } + return performanceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java index c4d4f5ed3fd8..a271c4927798 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java @@ -852,5 +852,50 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getCmekKeyNameBytes(); + /** + * + * + *
+   * Optional. Data dump parallelism settings used by the migration.
+   * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the performanceConfig field is set. + */ + boolean hasPerformanceConfig(); + /** + * + * + *
+   * Optional. Data dump parallelism settings used by the migration.
+   * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The performanceConfig. + */ + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig getPerformanceConfig(); + /** + * + * + *
+   * Optional. Data dump parallelism settings used by the migration.
+   * Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.MigrationJob.PerformanceConfigOrBuilder + getPerformanceConfigOrBuilder(); + com.google.cloud.clouddms.v1.MigrationJob.ConnectivityCase getConnectivityCase(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java index bc526ebdc04f..05ff542eba8f 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java @@ -277,6 +277,16 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * CANT_RESTART_RUNNING_MIGRATION = 21; */ CANT_RESTART_RUNNING_MIGRATION(21), + /** + * + * + *
+     * The source already has a replication setup.
+     * 
+ * + * SOURCE_ALREADY_SETUP = 23; + */ + SOURCE_ALREADY_SETUP(23), /** * * @@ -329,6 +339,27 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * SOURCE_SIZE_EXCEEDS_THRESHOLD = 28; */ SOURCE_SIZE_EXCEEDS_THRESHOLD(28), + /** + * + * + *
+     * The destination DB contains existing databases that are conflicting with
+     * those in the source DB.
+     * 
+ * + * EXISTING_CONFLICTING_DATABASES = 29; + */ + EXISTING_CONFLICTING_DATABASES(29), + /** + * + * + *
+     * Insufficient privilege to enable the parallelism configuration.
+     * 
+ * + * PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE = 30; + */ + PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE(30), UNRECOGNIZED(-1), ; @@ -535,6 +566,16 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * CANT_RESTART_RUNNING_MIGRATION = 21; */ public static final int CANT_RESTART_RUNNING_MIGRATION_VALUE = 21; + /** + * + * + *
+     * The source already has a replication setup.
+     * 
+ * + * SOURCE_ALREADY_SETUP = 23; + */ + public static final int SOURCE_ALREADY_SETUP_VALUE = 23; /** * * @@ -587,6 +628,27 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * SOURCE_SIZE_EXCEEDS_THRESHOLD = 28; */ public static final int SOURCE_SIZE_EXCEEDS_THRESHOLD_VALUE = 28; + /** + * + * + *
+     * The destination DB contains existing databases that are conflicting with
+     * those in the source DB.
+     * 
+ * + * EXISTING_CONFLICTING_DATABASES = 29; + */ + public static final int EXISTING_CONFLICTING_DATABASES_VALUE = 29; + /** + * + * + *
+     * Insufficient privilege to enable the parallelism configuration.
+     * 
+ * + * PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE = 30; + */ + public static final int PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE_VALUE = 30; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -652,6 +714,8 @@ public static ErrorCode forNumber(int value) { return UNSUPPORTED_DEFINER; case 21: return CANT_RESTART_RUNNING_MIGRATION; + case 23: + return SOURCE_ALREADY_SETUP; case 24: return TABLES_WITH_LIMITED_SUPPORT; case 25: @@ -662,6 +726,10 @@ public static ErrorCode forNumber(int value) { return ERROR_RDBMS; case 28: return SOURCE_SIZE_EXCEEDS_THRESHOLD; + case 29: + return EXISTING_CONFLICTING_DATABASES; + case 30: + return PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE; default: return null; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiColumnDatatypeChange.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiColumnDatatypeChange.java new file mode 100644 index 000000000000..dfc8589cda4a --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiColumnDatatypeChange.java @@ -0,0 +1,2249 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type MultiColumnDatatypeChange.
+ * The rule is used to change the data type and associated properties of
+ * multiple columns at once.
+ *
+ * The rule filter field can refer to one or more entities.
+ *
+ * The rule scope can be one of:Column.
+ *
+ * This rule requires additional filters to be specified beyond the basic rule
+ * filter field, which is the source data type, but the rule supports additional
+ * filtering capabilities such as the minimum and maximum field length. All
+ * additional filters which are specified are required to be met in order for
+ * the rule to be applied (logical AND between the fields).
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MultiColumnDatatypeChange} + */ +public final class MultiColumnDatatypeChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MultiColumnDatatypeChange) + MultiColumnDatatypeChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use MultiColumnDatatypeChange.newBuilder() to construct. + private MultiColumnDatatypeChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiColumnDatatypeChange() { + sourceDataTypeFilter_ = ""; + newDataType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiColumnDatatypeChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.class, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.Builder.class); + } + + private int sourceFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceFilter_; + + public enum SourceFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SOURCE_TEXT_FILTER(100), + SOURCE_NUMERIC_FILTER(101), + SOURCEFILTER_NOT_SET(0); + private final int value; + + private SourceFilterCase(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 SourceFilterCase valueOf(int value) { + return forNumber(value); + } + + public static SourceFilterCase forNumber(int value) { + switch (value) { + case 100: + return SOURCE_TEXT_FILTER; + case 101: + return SOURCE_NUMERIC_FILTER; + case 0: + return SOURCEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceFilterCase getSourceFilterCase() { + return SourceFilterCase.forNumber(sourceFilterCase_); + } + + public static final int SOURCE_DATA_TYPE_FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceDataTypeFilter_ = ""; + /** + * + * + *
+   * Required. Filter on source data type.
+   * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceDataTypeFilter. + */ + @java.lang.Override + public java.lang.String getSourceDataTypeFilter() { + java.lang.Object ref = sourceDataTypeFilter_; + 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(); + sourceDataTypeFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Filter on source data type.
+   * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceDataTypeFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceDataTypeFilterBytes() { + java.lang.Object ref = sourceDataTypeFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceDataTypeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_TEXT_FILTER_FIELD_NUMBER = 100; + /** + * + * + *
+   * Optional. Filter for text-based data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceTextFilter field is set. + */ + @java.lang.Override + public boolean hasSourceTextFilter() { + return sourceFilterCase_ == 100; + } + /** + * + * + *
+   * Optional. Filter for text-based data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceTextFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilter getSourceTextFilter() { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Filter for text-based data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder getSourceTextFilterOrBuilder() { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + + public static final int SOURCE_NUMERIC_FILTER_FIELD_NUMBER = 101; + /** + * + * + *
+   * Optional. Filter for fixed point number data types such as
+   * NUMERIC/NUMBER.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceNumericFilter field is set. + */ + @java.lang.Override + public boolean hasSourceNumericFilter() { + return sourceFilterCase_ == 101; + } + /** + * + * + *
+   * Optional. Filter for fixed point number data types such as
+   * NUMERIC/NUMBER.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNumericFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilter getSourceNumericFilter() { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Filter for fixed point number data types such as
+   * NUMERIC/NUMBER.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder + getSourceNumericFilterOrBuilder() { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + + public static final int NEW_DATA_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object newDataType_ = ""; + /** + * + * + *
+   * Required. New data type.
+   * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newDataType. + */ + @java.lang.Override + public java.lang.String getNewDataType() { + java.lang.Object ref = newDataType_; + 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(); + newDataType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. New data type.
+   * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newDataType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewDataTypeBytes() { + java.lang.Object ref = newDataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERRIDE_LENGTH_FIELD_NUMBER = 3; + private long overrideLength_ = 0L; + /** + * + * + *
+   * Optional. Column length - e.g. varchar (50) - if not specified and relevant
+   * uses the source column length.
+   * 
+ * + * int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overrideLength. + */ + @java.lang.Override + public long getOverrideLength() { + return overrideLength_; + } + + public static final int OVERRIDE_SCALE_FIELD_NUMBER = 4; + private int overrideScale_ = 0; + /** + * + * + *
+   * Optional. Column scale - when relevant - if not specified and relevant
+   * uses the source column scale.
+   * 
+ * + * int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overrideScale. + */ + @java.lang.Override + public int getOverrideScale() { + return overrideScale_; + } + + public static final int OVERRIDE_PRECISION_FIELD_NUMBER = 5; + private int overridePrecision_ = 0; + /** + * + * + *
+   * Optional. Column precision - when relevant - if not specified and relevant
+   * uses the source column precision.
+   * 
+ * + * int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overridePrecision. + */ + @java.lang.Override + public int getOverridePrecision() { + return overridePrecision_; + } + + public static final int OVERRIDE_FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER = 6; + private int overrideFractionalSecondsPrecision_ = 0; + /** + * + * + *
+   * Optional. Column fractional seconds precision - used only for timestamp
+   * based datatypes - if not specified and relevant uses the source column
+   * fractional seconds precision.
+   * 
+ * + * + * int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The overrideFractionalSecondsPrecision. + */ + @java.lang.Override + public int getOverrideFractionalSecondsPrecision() { + return overrideFractionalSecondsPrecision_; + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 7; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDataTypeFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceDataTypeFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newDataType_); + } + if (overrideLength_ != 0L) { + output.writeInt64(3, overrideLength_); + } + if (overrideScale_ != 0) { + output.writeInt32(4, overrideScale_); + } + if (overridePrecision_ != 0) { + output.writeInt32(5, overridePrecision_); + } + if (overrideFractionalSecondsPrecision_ != 0) { + output.writeInt32(6, overrideFractionalSecondsPrecision_); + } + if (customFeatures_ != null) { + output.writeMessage(7, getCustomFeatures()); + } + if (sourceFilterCase_ == 100) { + output.writeMessage(100, (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_); + } + if (sourceFilterCase_ == 101) { + output.writeMessage(101, (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_); + } + 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(sourceDataTypeFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceDataTypeFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newDataType_); + } + if (overrideLength_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, overrideLength_); + } + if (overrideScale_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, overrideScale_); + } + if (overridePrecision_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, overridePrecision_); + } + if (overrideFractionalSecondsPrecision_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 6, overrideFractionalSecondsPrecision_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCustomFeatures()); + } + if (sourceFilterCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_); + } + if (sourceFilterCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_); + } + 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.MultiColumnDatatypeChange)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange other = + (com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) obj; + + if (!getSourceDataTypeFilter().equals(other.getSourceDataTypeFilter())) return false; + if (!getNewDataType().equals(other.getNewDataType())) return false; + if (getOverrideLength() != other.getOverrideLength()) return false; + if (getOverrideScale() != other.getOverrideScale()) return false; + if (getOverridePrecision() != other.getOverridePrecision()) return false; + if (getOverrideFractionalSecondsPrecision() != other.getOverrideFractionalSecondsPrecision()) + return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getSourceFilterCase().equals(other.getSourceFilterCase())) return false; + switch (sourceFilterCase_) { + case 100: + if (!getSourceTextFilter().equals(other.getSourceTextFilter())) return false; + break; + case 101: + if (!getSourceNumericFilter().equals(other.getSourceNumericFilter())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_DATA_TYPE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceDataTypeFilter().hashCode(); + hash = (37 * hash) + NEW_DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getNewDataType().hashCode(); + hash = (37 * hash) + OVERRIDE_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOverrideLength()); + hash = (37 * hash) + OVERRIDE_SCALE_FIELD_NUMBER; + hash = (53 * hash) + getOverrideScale(); + hash = (37 * hash) + OVERRIDE_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getOverridePrecision(); + hash = (37 * hash) + OVERRIDE_FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getOverrideFractionalSecondsPrecision(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + switch (sourceFilterCase_) { + case 100: + hash = (37 * hash) + SOURCE_TEXT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceTextFilter().hashCode(); + break; + case 101: + hash = (37 * hash) + SOURCE_NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceNumericFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.MultiColumnDatatypeChange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MultiColumnDatatypeChange 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.MultiColumnDatatypeChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MultiColumnDatatypeChange 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.MultiColumnDatatypeChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MultiColumnDatatypeChange 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.MultiColumnDatatypeChange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MultiColumnDatatypeChange 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.MultiColumnDatatypeChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MultiColumnDatatypeChange 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.MultiColumnDatatypeChange 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.MultiColumnDatatypeChange 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.MultiColumnDatatypeChange 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; + } + /** + * + * + *
+   * Options to configure rule type MultiColumnDatatypeChange.
+   * The rule is used to change the data type and associated properties of
+   * multiple columns at once.
+   *
+   * The rule filter field can refer to one or more entities.
+   *
+   * The rule scope can be one of:Column.
+   *
+   * This rule requires additional filters to be specified beyond the basic rule
+   * filter field, which is the source data type, but the rule supports additional
+   * filtering capabilities such as the minimum and maximum field length. All
+   * additional filters which are specified are required to be met in order for
+   * the rule to be applied (logical AND between the fields).
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MultiColumnDatatypeChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MultiColumnDatatypeChange) + com.google.cloud.clouddms.v1.MultiColumnDatatypeChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiColumnDatatypeChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.class, + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceDataTypeFilter_ = ""; + if (sourceTextFilterBuilder_ != null) { + sourceTextFilterBuilder_.clear(); + } + if (sourceNumericFilterBuilder_ != null) { + sourceNumericFilterBuilder_.clear(); + } + newDataType_ = ""; + overrideLength_ = 0L; + overrideScale_ = 0; + overridePrecision_ = 0; + overrideFractionalSecondsPrecision_ = 0; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + sourceFilterCase_ = 0; + sourceFilter_ = 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_MultiColumnDatatypeChange_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChange getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChange build() { + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiColumnDatatypeChange buildPartial() { + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange result = + new com.google.cloud.clouddms.v1.MultiColumnDatatypeChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MultiColumnDatatypeChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceDataTypeFilter_ = sourceDataTypeFilter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.newDataType_ = newDataType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.overrideLength_ = overrideLength_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.overrideScale_ = overrideScale_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.overridePrecision_ = overridePrecision_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.overrideFractionalSecondsPrecision_ = overrideFractionalSecondsPrecision_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.MultiColumnDatatypeChange result) { + result.sourceFilterCase_ = sourceFilterCase_; + result.sourceFilter_ = this.sourceFilter_; + if (sourceFilterCase_ == 100 && sourceTextFilterBuilder_ != null) { + result.sourceFilter_ = sourceTextFilterBuilder_.build(); + } + if (sourceFilterCase_ == 101 && sourceNumericFilterBuilder_ != null) { + result.sourceFilter_ = sourceNumericFilterBuilder_.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.MultiColumnDatatypeChange) { + return mergeFrom((com.google.cloud.clouddms.v1.MultiColumnDatatypeChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MultiColumnDatatypeChange other) { + if (other == com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.getDefaultInstance()) + return this; + if (!other.getSourceDataTypeFilter().isEmpty()) { + sourceDataTypeFilter_ = other.sourceDataTypeFilter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNewDataType().isEmpty()) { + newDataType_ = other.newDataType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getOverrideLength() != 0L) { + setOverrideLength(other.getOverrideLength()); + } + if (other.getOverrideScale() != 0) { + setOverrideScale(other.getOverrideScale()); + } + if (other.getOverridePrecision() != 0) { + setOverridePrecision(other.getOverridePrecision()); + } + if (other.getOverrideFractionalSecondsPrecision() != 0) { + setOverrideFractionalSecondsPrecision(other.getOverrideFractionalSecondsPrecision()); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + switch (other.getSourceFilterCase()) { + case SOURCE_TEXT_FILTER: + { + mergeSourceTextFilter(other.getSourceTextFilter()); + break; + } + case SOURCE_NUMERIC_FILTER: + { + mergeSourceNumericFilter(other.getSourceNumericFilter()); + break; + } + case SOURCEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sourceDataTypeFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + newDataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 24: + { + overrideLength_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 24 + case 32: + { + overrideScale_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 40: + { + overridePrecision_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 40 + case 48: + { + overrideFractionalSecondsPrecision_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 48 + case 58: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 802: + { + input.readMessage( + getSourceTextFilterFieldBuilder().getBuilder(), extensionRegistry); + sourceFilterCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getSourceNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + sourceFilterCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceFilterCase_ = 0; + private java.lang.Object sourceFilter_; + + public SourceFilterCase getSourceFilterCase() { + return SourceFilterCase.forNumber(sourceFilterCase_); + } + + public Builder clearSourceFilter() { + sourceFilterCase_ = 0; + sourceFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object sourceDataTypeFilter_ = ""; + /** + * + * + *
+     * Required. Filter on source data type.
+     * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceDataTypeFilter. + */ + public java.lang.String getSourceDataTypeFilter() { + java.lang.Object ref = sourceDataTypeFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceDataTypeFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Filter on source data type.
+     * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceDataTypeFilter. + */ + public com.google.protobuf.ByteString getSourceDataTypeFilterBytes() { + java.lang.Object ref = sourceDataTypeFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceDataTypeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Filter on source data type.
+     * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sourceDataTypeFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceDataTypeFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceDataTypeFilter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Filter on source data type.
+     * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSourceDataTypeFilter() { + sourceDataTypeFilter_ = getDefaultInstance().getSourceDataTypeFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Filter on source data type.
+     * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sourceDataTypeFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceDataTypeFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceDataTypeFilter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceTextFilter, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder, + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder> + sourceTextFilterBuilder_; + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceTextFilter field is set. + */ + @java.lang.Override + public boolean hasSourceTextFilter() { + return sourceFilterCase_ == 100; + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceTextFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilter getSourceTextFilter() { + if (sourceTextFilterBuilder_ == null) { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } else { + if (sourceFilterCase_ == 100) { + return sourceTextFilterBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceTextFilter(com.google.cloud.clouddms.v1.SourceTextFilter value) { + if (sourceTextFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceFilter_ = value; + onChanged(); + } else { + sourceTextFilterBuilder_.setMessage(value); + } + sourceFilterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceTextFilter( + com.google.cloud.clouddms.v1.SourceTextFilter.Builder builderForValue) { + if (sourceTextFilterBuilder_ == null) { + sourceFilter_ = builderForValue.build(); + onChanged(); + } else { + sourceTextFilterBuilder_.setMessage(builderForValue.build()); + } + sourceFilterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSourceTextFilter(com.google.cloud.clouddms.v1.SourceTextFilter value) { + if (sourceTextFilterBuilder_ == null) { + if (sourceFilterCase_ == 100 + && sourceFilter_ + != com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance()) { + sourceFilter_ = + com.google.cloud.clouddms.v1.SourceTextFilter.newBuilder( + (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceFilter_ = value; + } + onChanged(); + } else { + if (sourceFilterCase_ == 100) { + sourceTextFilterBuilder_.mergeFrom(value); + } else { + sourceTextFilterBuilder_.setMessage(value); + } + } + sourceFilterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceTextFilter() { + if (sourceTextFilterBuilder_ == null) { + if (sourceFilterCase_ == 100) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + onChanged(); + } + } else { + if (sourceFilterCase_ == 100) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + } + sourceTextFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SourceTextFilter.Builder getSourceTextFilterBuilder() { + return getSourceTextFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder getSourceTextFilterOrBuilder() { + if ((sourceFilterCase_ == 100) && (sourceTextFilterBuilder_ != null)) { + return sourceTextFilterBuilder_.getMessageOrBuilder(); + } else { + if (sourceFilterCase_ == 100) { + return (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter for text-based data types like varchar.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceTextFilter, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder, + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder> + getSourceTextFilterFieldBuilder() { + if (sourceTextFilterBuilder_ == null) { + if (!(sourceFilterCase_ == 100)) { + sourceFilter_ = com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + sourceTextFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceTextFilter, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder, + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder>( + (com.google.cloud.clouddms.v1.SourceTextFilter) sourceFilter_, + getParentForChildren(), + isClean()); + sourceFilter_ = null; + } + sourceFilterCase_ = 100; + onChanged(); + return sourceTextFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceNumericFilter, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder, + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder> + sourceNumericFilterBuilder_; + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceNumericFilter field is set. + */ + @java.lang.Override + public boolean hasSourceNumericFilter() { + return sourceFilterCase_ == 101; + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNumericFilter. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilter getSourceNumericFilter() { + if (sourceNumericFilterBuilder_ == null) { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } else { + if (sourceFilterCase_ == 101) { + return sourceNumericFilterBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceNumericFilter(com.google.cloud.clouddms.v1.SourceNumericFilter value) { + if (sourceNumericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceFilter_ = value; + onChanged(); + } else { + sourceNumericFilterBuilder_.setMessage(value); + } + sourceFilterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceNumericFilter( + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder builderForValue) { + if (sourceNumericFilterBuilder_ == null) { + sourceFilter_ = builderForValue.build(); + onChanged(); + } else { + sourceNumericFilterBuilder_.setMessage(builderForValue.build()); + } + sourceFilterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSourceNumericFilter( + com.google.cloud.clouddms.v1.SourceNumericFilter value) { + if (sourceNumericFilterBuilder_ == null) { + if (sourceFilterCase_ == 101 + && sourceFilter_ + != com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance()) { + sourceFilter_ = + com.google.cloud.clouddms.v1.SourceNumericFilter.newBuilder( + (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceFilter_ = value; + } + onChanged(); + } else { + if (sourceFilterCase_ == 101) { + sourceNumericFilterBuilder_.mergeFrom(value); + } else { + sourceNumericFilterBuilder_.setMessage(value); + } + } + sourceFilterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceNumericFilter() { + if (sourceNumericFilterBuilder_ == null) { + if (sourceFilterCase_ == 101) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + onChanged(); + } + } else { + if (sourceFilterCase_ == 101) { + sourceFilterCase_ = 0; + sourceFilter_ = null; + } + sourceNumericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.SourceNumericFilter.Builder + getSourceNumericFilterBuilder() { + return getSourceNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder + getSourceNumericFilterOrBuilder() { + if ((sourceFilterCase_ == 101) && (sourceNumericFilterBuilder_ != null)) { + return sourceNumericFilterBuilder_.getMessageOrBuilder(); + } else { + if (sourceFilterCase_ == 101) { + return (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_; + } + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter for fixed point number data types such as
+     * NUMERIC/NUMBER.
+     * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceNumericFilter, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder, + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder> + getSourceNumericFilterFieldBuilder() { + if (sourceNumericFilterBuilder_ == null) { + if (!(sourceFilterCase_ == 101)) { + sourceFilter_ = com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + sourceNumericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SourceNumericFilter, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder, + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder>( + (com.google.cloud.clouddms.v1.SourceNumericFilter) sourceFilter_, + getParentForChildren(), + isClean()); + sourceFilter_ = null; + } + sourceFilterCase_ = 101; + onChanged(); + return sourceNumericFilterBuilder_; + } + + private java.lang.Object newDataType_ = ""; + /** + * + * + *
+     * Required. New data type.
+     * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newDataType. + */ + public java.lang.String getNewDataType() { + java.lang.Object ref = newDataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newDataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. New data type.
+     * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newDataType. + */ + public com.google.protobuf.ByteString getNewDataTypeBytes() { + java.lang.Object ref = newDataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. New data type.
+     * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The newDataType to set. + * @return This builder for chaining. + */ + public Builder setNewDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newDataType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. New data type.
+     * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNewDataType() { + newDataType_ = getDefaultInstance().getNewDataType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. New data type.
+     * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for newDataType to set. + * @return This builder for chaining. + */ + public Builder setNewDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newDataType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long overrideLength_; + /** + * + * + *
+     * Optional. Column length - e.g. varchar (50) - if not specified and relevant
+     * uses the source column length.
+     * 
+ * + * int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overrideLength. + */ + @java.lang.Override + public long getOverrideLength() { + return overrideLength_; + } + /** + * + * + *
+     * Optional. Column length - e.g. varchar (50) - if not specified and relevant
+     * uses the source column length.
+     * 
+ * + * int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The overrideLength to set. + * @return This builder for chaining. + */ + public Builder setOverrideLength(long value) { + + overrideLength_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column length - e.g. varchar (50) - if not specified and relevant
+     * uses the source column length.
+     * 
+ * + * int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOverrideLength() { + bitField0_ = (bitField0_ & ~0x00000010); + overrideLength_ = 0L; + onChanged(); + return this; + } + + private int overrideScale_; + /** + * + * + *
+     * Optional. Column scale - when relevant - if not specified and relevant
+     * uses the source column scale.
+     * 
+ * + * int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overrideScale. + */ + @java.lang.Override + public int getOverrideScale() { + return overrideScale_; + } + /** + * + * + *
+     * Optional. Column scale - when relevant - if not specified and relevant
+     * uses the source column scale.
+     * 
+ * + * int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The overrideScale to set. + * @return This builder for chaining. + */ + public Builder setOverrideScale(int value) { + + overrideScale_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column scale - when relevant - if not specified and relevant
+     * uses the source column scale.
+     * 
+ * + * int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOverrideScale() { + bitField0_ = (bitField0_ & ~0x00000020); + overrideScale_ = 0; + onChanged(); + return this; + } + + private int overridePrecision_; + /** + * + * + *
+     * Optional. Column precision - when relevant - if not specified and relevant
+     * uses the source column precision.
+     * 
+ * + * int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overridePrecision. + */ + @java.lang.Override + public int getOverridePrecision() { + return overridePrecision_; + } + /** + * + * + *
+     * Optional. Column precision - when relevant - if not specified and relevant
+     * uses the source column precision.
+     * 
+ * + * int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The overridePrecision to set. + * @return This builder for chaining. + */ + public Builder setOverridePrecision(int value) { + + overridePrecision_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column precision - when relevant - if not specified and relevant
+     * uses the source column precision.
+     * 
+ * + * int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOverridePrecision() { + bitField0_ = (bitField0_ & ~0x00000040); + overridePrecision_ = 0; + onChanged(); + return this; + } + + private int overrideFractionalSecondsPrecision_; + /** + * + * + *
+     * Optional. Column fractional seconds precision - used only for timestamp
+     * based datatypes - if not specified and relevant uses the source column
+     * fractional seconds precision.
+     * 
+ * + * + * int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The overrideFractionalSecondsPrecision. + */ + @java.lang.Override + public int getOverrideFractionalSecondsPrecision() { + return overrideFractionalSecondsPrecision_; + } + /** + * + * + *
+     * Optional. Column fractional seconds precision - used only for timestamp
+     * based datatypes - if not specified and relevant uses the source column
+     * fractional seconds precision.
+     * 
+ * + * + * int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The overrideFractionalSecondsPrecision to set. + * @return This builder for chaining. + */ + public Builder setOverrideFractionalSecondsPrecision(int value) { + + overrideFractionalSecondsPrecision_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column fractional seconds precision - used only for timestamp
+     * based datatypes - if not specified and relevant uses the source column
+     * fractional seconds precision.
+     * 
+ * + * + * int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearOverrideFractionalSecondsPrecision() { + bitField0_ = (bitField0_ & ~0x00000080); + overrideFractionalSecondsPrecision_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000100); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MultiColumnDatatypeChange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MultiColumnDatatypeChange) + private static final com.google.cloud.clouddms.v1.MultiColumnDatatypeChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MultiColumnDatatypeChange(); + } + + public static com.google.cloud.clouddms.v1.MultiColumnDatatypeChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiColumnDatatypeChange 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.MultiColumnDatatypeChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiColumnDatatypeChangeOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiColumnDatatypeChangeOrBuilder.java new file mode 100644 index 000000000000..9d76652921fe --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiColumnDatatypeChangeOrBuilder.java @@ -0,0 +1,259 @@ +/* + * 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 MultiColumnDatatypeChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MultiColumnDatatypeChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Filter on source data type.
+   * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceDataTypeFilter. + */ + java.lang.String getSourceDataTypeFilter(); + /** + * + * + *
+   * Required. Filter on source data type.
+   * 
+ * + * string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceDataTypeFilter. + */ + com.google.protobuf.ByteString getSourceDataTypeFilterBytes(); + + /** + * + * + *
+   * Optional. Filter for text-based data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceTextFilter field is set. + */ + boolean hasSourceTextFilter(); + /** + * + * + *
+   * Optional. Filter for text-based data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceTextFilter. + */ + com.google.cloud.clouddms.v1.SourceTextFilter getSourceTextFilter(); + /** + * + * + *
+   * Optional. Filter for text-based data types like varchar.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder getSourceTextFilterOrBuilder(); + + /** + * + * + *
+   * Optional. Filter for fixed point number data types such as
+   * NUMERIC/NUMBER.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceNumericFilter field is set. + */ + boolean hasSourceNumericFilter(); + /** + * + * + *
+   * Optional. Filter for fixed point number data types such as
+   * NUMERIC/NUMBER.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNumericFilter. + */ + com.google.cloud.clouddms.v1.SourceNumericFilter getSourceNumericFilter(); + /** + * + * + *
+   * Optional. Filter for fixed point number data types such as
+   * NUMERIC/NUMBER.
+   * 
+ * + * + * .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder getSourceNumericFilterOrBuilder(); + + /** + * + * + *
+   * Required. New data type.
+   * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newDataType. + */ + java.lang.String getNewDataType(); + /** + * + * + *
+   * Required. New data type.
+   * 
+ * + * string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newDataType. + */ + com.google.protobuf.ByteString getNewDataTypeBytes(); + + /** + * + * + *
+   * Optional. Column length - e.g. varchar (50) - if not specified and relevant
+   * uses the source column length.
+   * 
+ * + * int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overrideLength. + */ + long getOverrideLength(); + + /** + * + * + *
+   * Optional. Column scale - when relevant - if not specified and relevant
+   * uses the source column scale.
+   * 
+ * + * int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overrideScale. + */ + int getOverrideScale(); + + /** + * + * + *
+   * Optional. Column precision - when relevant - if not specified and relevant
+   * uses the source column precision.
+   * 
+ * + * int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overridePrecision. + */ + int getOverridePrecision(); + + /** + * + * + *
+   * Optional. Column fractional seconds precision - used only for timestamp
+   * based datatypes - if not specified and relevant uses the source column
+   * fractional seconds precision.
+   * 
+ * + * + * int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The overrideFractionalSecondsPrecision. + */ + int getOverrideFractionalSecondsPrecision(); + + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); + + com.google.cloud.clouddms.v1.MultiColumnDatatypeChange.SourceFilterCase getSourceFilterCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiEntityRename.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiEntityRename.java new file mode 100644 index 000000000000..cfd09588222b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiEntityRename.java @@ -0,0 +1,858 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type MultiEntityRename.
+ * The rule is used to rename multiple entities.
+ *
+ * The rule filter field can refer to one or more entities.
+ *
+ * The rule scope can be one of: Database, Schema, Table, Column, Constraint,
+ * Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MultiEntityRename} + */ +public final class MultiEntityRename extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MultiEntityRename) + MultiEntityRenameOrBuilder { + private static final long serialVersionUID = 0L; + // Use MultiEntityRename.newBuilder() to construct. + private MultiEntityRename(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiEntityRename() { + newNamePattern_ = ""; + sourceNameTransformation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiEntityRename(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiEntityRename_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiEntityRename_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MultiEntityRename.class, + com.google.cloud.clouddms.v1.MultiEntityRename.Builder.class); + } + + public static final int NEW_NAME_PATTERN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object newNamePattern_ = ""; + /** + * + * + *
+   * Optional. The pattern used to generate the new entity's name. This pattern
+   * must include the characters '{name}', which will be replaced with the name
+   * of the original entity. For example, the pattern 't_{name}' for an entity
+   * name jobs would be converted to 't_jobs'.
+   *
+   * If unspecified, the default value for this field is '{name}'
+   * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The newNamePattern. + */ + @java.lang.Override + public java.lang.String getNewNamePattern() { + java.lang.Object ref = newNamePattern_; + 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(); + newNamePattern_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The pattern used to generate the new entity's name. This pattern
+   * must include the characters '{name}', which will be replaced with the name
+   * of the original entity. For example, the pattern 't_{name}' for an entity
+   * name jobs would be converted to 't_jobs'.
+   *
+   * If unspecified, the default value for this field is '{name}'
+   * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for newNamePattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewNamePatternBytes() { + java.lang.Object ref = newNamePattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newNamePattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_NAME_TRANSFORMATION_FIELD_NUMBER = 2; + private int sourceNameTransformation_ = 0; + /** + * + * + *
+   * Optional. Additional transformation that can be done on the source entity
+   * name before it is being used by the new_name_pattern, for example lower
+   * case. If no transformation is desired, use NO_TRANSFORMATION
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sourceNameTransformation. + */ + @java.lang.Override + public int getSourceNameTransformationValue() { + return sourceNameTransformation_; + } + /** + * + * + *
+   * Optional. Additional transformation that can be done on the source entity
+   * name before it is being used by the new_name_pattern, for example lower
+   * case. If no transformation is desired, use NO_TRANSFORMATION
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNameTransformation. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityNameTransformation getSourceNameTransformation() { + com.google.cloud.clouddms.v1.EntityNameTransformation result = + com.google.cloud.clouddms.v1.EntityNameTransformation.forNumber(sourceNameTransformation_); + return result == null + ? com.google.cloud.clouddms.v1.EntityNameTransformation.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newNamePattern_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, newNamePattern_); + } + if (sourceNameTransformation_ + != com.google.cloud.clouddms.v1.EntityNameTransformation + .ENTITY_NAME_TRANSFORMATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, sourceNameTransformation_); + } + 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(newNamePattern_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, newNamePattern_); + } + if (sourceNameTransformation_ + != com.google.cloud.clouddms.v1.EntityNameTransformation + .ENTITY_NAME_TRANSFORMATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, sourceNameTransformation_); + } + 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.MultiEntityRename)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MultiEntityRename other = + (com.google.cloud.clouddms.v1.MultiEntityRename) obj; + + if (!getNewNamePattern().equals(other.getNewNamePattern())) return false; + if (sourceNameTransformation_ != other.sourceNameTransformation_) 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) + NEW_NAME_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getNewNamePattern().hashCode(); + hash = (37 * hash) + SOURCE_NAME_TRANSFORMATION_FIELD_NUMBER; + hash = (53 * hash) + sourceNameTransformation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.MultiEntityRename parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MultiEntityRename 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.MultiEntityRename parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MultiEntityRename 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.MultiEntityRename parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MultiEntityRename 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.MultiEntityRename parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MultiEntityRename 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.MultiEntityRename parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MultiEntityRename 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.MultiEntityRename 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.MultiEntityRename 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.MultiEntityRename 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; + } + /** + * + * + *
+   * Options to configure rule type MultiEntityRename.
+   * The rule is used to rename multiple entities.
+   *
+   * The rule filter field can refer to one or more entities.
+   *
+   * The rule scope can be one of: Database, Schema, Table, Column, Constraint,
+   * Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MultiEntityRename} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MultiEntityRename) + com.google.cloud.clouddms.v1.MultiEntityRenameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiEntityRename_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiEntityRename_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MultiEntityRename.class, + com.google.cloud.clouddms.v1.MultiEntityRename.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MultiEntityRename.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + newNamePattern_ = ""; + sourceNameTransformation_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_MultiEntityRename_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiEntityRename getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiEntityRename build() { + com.google.cloud.clouddms.v1.MultiEntityRename result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MultiEntityRename buildPartial() { + com.google.cloud.clouddms.v1.MultiEntityRename result = + new com.google.cloud.clouddms.v1.MultiEntityRename(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MultiEntityRename result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.newNamePattern_ = newNamePattern_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceNameTransformation_ = sourceNameTransformation_; + } + } + + @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.MultiEntityRename) { + return mergeFrom((com.google.cloud.clouddms.v1.MultiEntityRename) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MultiEntityRename other) { + if (other == com.google.cloud.clouddms.v1.MultiEntityRename.getDefaultInstance()) return this; + if (!other.getNewNamePattern().isEmpty()) { + newNamePattern_ = other.newNamePattern_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.sourceNameTransformation_ != 0) { + setSourceNameTransformationValue(other.getSourceNameTransformationValue()); + } + 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: + { + newNamePattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sourceNameTransformation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object newNamePattern_ = ""; + /** + * + * + *
+     * Optional. The pattern used to generate the new entity's name. This pattern
+     * must include the characters '{name}', which will be replaced with the name
+     * of the original entity. For example, the pattern 't_{name}' for an entity
+     * name jobs would be converted to 't_jobs'.
+     *
+     * If unspecified, the default value for this field is '{name}'
+     * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The newNamePattern. + */ + public java.lang.String getNewNamePattern() { + java.lang.Object ref = newNamePattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newNamePattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The pattern used to generate the new entity's name. This pattern
+     * must include the characters '{name}', which will be replaced with the name
+     * of the original entity. For example, the pattern 't_{name}' for an entity
+     * name jobs would be converted to 't_jobs'.
+     *
+     * If unspecified, the default value for this field is '{name}'
+     * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for newNamePattern. + */ + public com.google.protobuf.ByteString getNewNamePatternBytes() { + java.lang.Object ref = newNamePattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newNamePattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The pattern used to generate the new entity's name. This pattern
+     * must include the characters '{name}', which will be replaced with the name
+     * of the original entity. For example, the pattern 't_{name}' for an entity
+     * name jobs would be converted to 't_jobs'.
+     *
+     * If unspecified, the default value for this field is '{name}'
+     * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The newNamePattern to set. + * @return This builder for chaining. + */ + public Builder setNewNamePattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newNamePattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pattern used to generate the new entity's name. This pattern
+     * must include the characters '{name}', which will be replaced with the name
+     * of the original entity. For example, the pattern 't_{name}' for an entity
+     * name jobs would be converted to 't_jobs'.
+     *
+     * If unspecified, the default value for this field is '{name}'
+     * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNewNamePattern() { + newNamePattern_ = getDefaultInstance().getNewNamePattern(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The pattern used to generate the new entity's name. This pattern
+     * must include the characters '{name}', which will be replaced with the name
+     * of the original entity. For example, the pattern 't_{name}' for an entity
+     * name jobs would be converted to 't_jobs'.
+     *
+     * If unspecified, the default value for this field is '{name}'
+     * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for newNamePattern to set. + * @return This builder for chaining. + */ + public Builder setNewNamePatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newNamePattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int sourceNameTransformation_ = 0; + /** + * + * + *
+     * Optional. Additional transformation that can be done on the source entity
+     * name before it is being used by the new_name_pattern, for example lower
+     * case. If no transformation is desired, use NO_TRANSFORMATION
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sourceNameTransformation. + */ + @java.lang.Override + public int getSourceNameTransformationValue() { + return sourceNameTransformation_; + } + /** + * + * + *
+     * Optional. Additional transformation that can be done on the source entity
+     * name before it is being used by the new_name_pattern, for example lower
+     * case. If no transformation is desired, use NO_TRANSFORMATION
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for sourceNameTransformation to set. + * @return This builder for chaining. + */ + public Builder setSourceNameTransformationValue(int value) { + sourceNameTransformation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional transformation that can be done on the source entity
+     * name before it is being used by the new_name_pattern, for example lower
+     * case. If no transformation is desired, use NO_TRANSFORMATION
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNameTransformation. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityNameTransformation getSourceNameTransformation() { + com.google.cloud.clouddms.v1.EntityNameTransformation result = + com.google.cloud.clouddms.v1.EntityNameTransformation.forNumber( + sourceNameTransformation_); + return result == null + ? com.google.cloud.clouddms.v1.EntityNameTransformation.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Additional transformation that can be done on the source entity
+     * name before it is being used by the new_name_pattern, for example lower
+     * case. If no transformation is desired, use NO_TRANSFORMATION
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sourceNameTransformation to set. + * @return This builder for chaining. + */ + public Builder setSourceNameTransformation( + com.google.cloud.clouddms.v1.EntityNameTransformation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + sourceNameTransformation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional transformation that can be done on the source entity
+     * name before it is being used by the new_name_pattern, for example lower
+     * case. If no transformation is desired, use NO_TRANSFORMATION
+     * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSourceNameTransformation() { + bitField0_ = (bitField0_ & ~0x00000002); + sourceNameTransformation_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MultiEntityRename) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MultiEntityRename) + private static final com.google.cloud.clouddms.v1.MultiEntityRename DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MultiEntityRename(); + } + + public static com.google.cloud.clouddms.v1.MultiEntityRename getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiEntityRename 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.MultiEntityRename getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiEntityRenameOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiEntityRenameOrBuilder.java new file mode 100644 index 000000000000..4b9f25b08a58 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MultiEntityRenameOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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 MultiEntityRenameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MultiEntityRename) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The pattern used to generate the new entity's name. This pattern
+   * must include the characters '{name}', which will be replaced with the name
+   * of the original entity. For example, the pattern 't_{name}' for an entity
+   * name jobs would be converted to 't_jobs'.
+   *
+   * If unspecified, the default value for this field is '{name}'
+   * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The newNamePattern. + */ + java.lang.String getNewNamePattern(); + /** + * + * + *
+   * Optional. The pattern used to generate the new entity's name. This pattern
+   * must include the characters '{name}', which will be replaced with the name
+   * of the original entity. For example, the pattern 't_{name}' for an entity
+   * name jobs would be converted to 't_jobs'.
+   *
+   * If unspecified, the default value for this field is '{name}'
+   * 
+ * + * string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for newNamePattern. + */ + com.google.protobuf.ByteString getNewNamePatternBytes(); + + /** + * + * + *
+   * Optional. Additional transformation that can be done on the source entity
+   * name before it is being used by the new_name_pattern, for example lower
+   * case. If no transformation is desired, use NO_TRANSFORMATION
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sourceNameTransformation. + */ + int getSourceNameTransformationValue(); + /** + * + * + *
+   * Optional. Additional transformation that can be done on the source entity
+   * name before it is being used by the new_name_pattern, for example lower
+   * case. If no transformation is desired, use NO_TRANSFORMATION
+   * 
+ * + * + * .google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceNameTransformation. + */ + com.google.cloud.clouddms.v1.EntityNameTransformation getSourceNameTransformation(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/NumericFilterOption.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/NumericFilterOption.java new file mode 100644 index 000000000000..20253f0bb673 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/NumericFilterOption.java @@ -0,0 +1,207 @@ +/* + * 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; + +/** + * + * + *
+ * Specifies the columns on which numeric filter needs to be applied.
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.NumericFilterOption} + */ +public enum NumericFilterOption implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Numeric filter option unspecified
+   * 
+ * + * NUMERIC_FILTER_OPTION_UNSPECIFIED = 0; + */ + NUMERIC_FILTER_OPTION_UNSPECIFIED(0), + /** + * + * + *
+   * Numeric filter option that matches all numeric columns.
+   * 
+ * + * NUMERIC_FILTER_OPTION_ALL = 1; + */ + NUMERIC_FILTER_OPTION_ALL(1), + /** + * + * + *
+   * Numeric filter option that matches columns having numeric datatypes with
+   * specified precision and scale within the limited range of filter.
+   * 
+ * + * NUMERIC_FILTER_OPTION_LIMIT = 2; + */ + NUMERIC_FILTER_OPTION_LIMIT(2), + /** + * + * + *
+   * Numeric filter option that matches only the numeric columns with no
+   * precision and scale specified.
+   * 
+ * + * NUMERIC_FILTER_OPTION_LIMITLESS = 3; + */ + NUMERIC_FILTER_OPTION_LIMITLESS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Numeric filter option unspecified
+   * 
+ * + * NUMERIC_FILTER_OPTION_UNSPECIFIED = 0; + */ + public static final int NUMERIC_FILTER_OPTION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Numeric filter option that matches all numeric columns.
+   * 
+ * + * NUMERIC_FILTER_OPTION_ALL = 1; + */ + public static final int NUMERIC_FILTER_OPTION_ALL_VALUE = 1; + /** + * + * + *
+   * Numeric filter option that matches columns having numeric datatypes with
+   * specified precision and scale within the limited range of filter.
+   * 
+ * + * NUMERIC_FILTER_OPTION_LIMIT = 2; + */ + public static final int NUMERIC_FILTER_OPTION_LIMIT_VALUE = 2; + /** + * + * + *
+   * Numeric filter option that matches only the numeric columns with no
+   * precision and scale specified.
+   * 
+ * + * NUMERIC_FILTER_OPTION_LIMITLESS = 3; + */ + public static final int NUMERIC_FILTER_OPTION_LIMITLESS_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NumericFilterOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NumericFilterOption forNumber(int value) { + switch (value) { + case 0: + return NUMERIC_FILTER_OPTION_UNSPECIFIED; + case 1: + return NUMERIC_FILTER_OPTION_ALL; + case 2: + return NUMERIC_FILTER_OPTION_LIMIT; + case 3: + return NUMERIC_FILTER_OPTION_LIMITLESS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NumericFilterOption findValueByNumber(int number) { + return NumericFilterOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() + .getEnumTypes() + .get(6); + } + + private static final NumericFilterOption[] VALUES = values(); + + public static NumericFilterOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NumericFilterOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.NumericFilterOption) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfile.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfile.java index f2a5c93bd133..2e37bffcf1bb 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfile.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfile.java @@ -372,6 +372,61 @@ public com.google.protobuf.ByteString getDatabaseServiceBytes() { } } + public static final int SSL_FIELD_NUMBER = 7; + private com.google.cloud.clouddms.v1.SslConfig ssl_; + /** + * + * + *
+   * SSL configuration for the connection to the source Oracle database.
+   *
+   *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+   *  * SSL is supported for Oracle versions 12 and above.
+   * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + * + * @return Whether the ssl field is set. + */ + @java.lang.Override + public boolean hasSsl() { + return ssl_ != null; + } + /** + * + * + *
+   * SSL configuration for the connection to the source Oracle database.
+   *
+   *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+   *  * SSL is supported for Oracle versions 12 and above.
+   * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + * + * @return The ssl. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SslConfig getSsl() { + return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + } + /** + * + * + *
+   * SSL configuration for the connection to the source Oracle database.
+   *
+   *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+   *  * SSL is supported for Oracle versions 12 and above.
+   * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { + return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + } + public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 100; /** * @@ -569,6 +624,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, databaseService_); } + if (ssl_ != null) { + output.writeMessage(7, getSsl()); + } if (connectivityCase_ == 100) { output.writeMessage( 100, (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_); @@ -607,6 +665,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, databaseService_); } + if (ssl_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSsl()); + } if (connectivityCase_ == 100) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -644,6 +705,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPassword().equals(other.getPassword())) return false; if (getPasswordSet() != other.getPasswordSet()) return false; if (!getDatabaseService().equals(other.getDatabaseService())) return false; + if (hasSsl() != other.hasSsl()) return false; + if (hasSsl()) { + if (!getSsl().equals(other.getSsl())) return false; + } if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 100: @@ -682,6 +747,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPasswordSet()); hash = (37 * hash) + DATABASE_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getDatabaseService().hashCode(); + if (hasSsl()) { + hash = (37 * hash) + SSL_FIELD_NUMBER; + hash = (53 * hash) + getSsl().hashCode(); + } switch (connectivityCase_) { case 100: hash = (37 * hash) + STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER; @@ -844,6 +913,11 @@ public Builder clear() { password_ = ""; passwordSet_ = false; databaseService_ = ""; + ssl_ = null; + if (sslBuilder_ != null) { + sslBuilder_.dispose(); + sslBuilder_ = null; + } if (staticServiceIpConnectivityBuilder_ != null) { staticServiceIpConnectivityBuilder_.clear(); } @@ -910,6 +984,9 @@ private void buildPartial0(com.google.cloud.clouddms.v1.OracleConnectionProfile if (((from_bitField0_ & 0x00000020) != 0)) { result.databaseService_ = databaseService_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ssl_ = sslBuilder_ == null ? ssl_ : sslBuilder_.build(); + } } private void buildPartialOneofs(com.google.cloud.clouddms.v1.OracleConnectionProfile result) { @@ -998,6 +1075,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.OracleConnectionProfile ot bitField0_ |= 0x00000020; onChanged(); } + if (other.hasSsl()) { + mergeSsl(other.getSsl()); + } switch (other.getConnectivityCase()) { case STATIC_SERVICE_IP_CONNECTIVITY: { @@ -1081,6 +1161,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + input.readMessage(getSslFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 case 802: { input.readMessage( @@ -1700,6 +1786,212 @@ public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.clouddms.v1.SslConfig ssl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder> + sslBuilder_; + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + * + * @return Whether the ssl field is set. + */ + public boolean hasSsl() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + * + * @return The ssl. + */ + public com.google.cloud.clouddms.v1.SslConfig getSsl() { + if (sslBuilder_ == null) { + return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + } else { + return sslBuilder_.getMessage(); + } + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig value) { + if (sslBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ssl_ = value; + } else { + sslBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { + if (sslBuilder_ == null) { + ssl_ = builderForValue.build(); + } else { + sslBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { + if (sslBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && ssl_ != null + && ssl_ != com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance()) { + getSslBuilder().mergeFrom(value); + } else { + ssl_ = value; + } + } else { + sslBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + public Builder clearSsl() { + bitField0_ = (bitField0_ & ~0x00000040); + ssl_ = null; + if (sslBuilder_ != null) { + sslBuilder_.dispose(); + sslBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + public com.google.cloud.clouddms.v1.SslConfig.Builder getSslBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getSslFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { + if (sslBuilder_ != null) { + return sslBuilder_.getMessageOrBuilder(); + } else { + return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + } + } + /** + * + * + *
+     * SSL configuration for the connection to the source Oracle database.
+     *
+     *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+     *  * SSL is supported for Oracle versions 12 and above.
+     * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder> + getSslFieldBuilder() { + if (sslBuilder_ == null) { + sslBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder>( + getSsl(), getParentForChildren(), isClean()); + ssl_ = null; + } + return sslBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.clouddms.v1.StaticServiceIpConnectivity, com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.Builder, diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfileOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfileOrBuilder.java index 2220282d96cf..c3bfd11d1d86 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfileOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfileOrBuilder.java @@ -163,6 +163,50 @@ public interface OracleConnectionProfileOrBuilder */ com.google.protobuf.ByteString getDatabaseServiceBytes(); + /** + * + * + *
+   * SSL configuration for the connection to the source Oracle database.
+   *
+   *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+   *  * SSL is supported for Oracle versions 12 and above.
+   * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + * + * @return Whether the ssl field is set. + */ + boolean hasSsl(); + /** + * + * + *
+   * SSL configuration for the connection to the source Oracle database.
+   *
+   *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+   *  * SSL is supported for Oracle versions 12 and above.
+   * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + * + * @return The ssl. + */ + com.google.cloud.clouddms.v1.SslConfig getSsl(); + /** + * + * + *
+   * SSL configuration for the connection to the source Oracle database.
+   *
+   *  * Only `SERVER_ONLY` configuration is supported for Oracle SSL.
+   *  * SSL is supported for Oracle versions 12 and above.
+   * 
+ * + * .google.cloud.clouddms.v1.SslConfig ssl = 7; + */ + com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder(); + /** * * diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivity.java index e044570f4951..02ef99eb5697 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivity.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivity.java @@ -22,8 +22,8 @@ * * *
- * Private Service Connect connectivity
- * (https://cloud.google.com/vpc/docs/private-service-connect#service-attachments)
+ * [Private Service Connect
+ * connectivity](https://cloud.google.com/vpc/docs/private-service-connect#service-attachments)
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.PrivateServiceConnectConnectivity} @@ -283,8 +283,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Private Service Connect connectivity
-   * (https://cloud.google.com/vpc/docs/private-service-connect#service-attachments)
+   * [Private Service Connect
+   * connectivity](https://cloud.google.com/vpc/docs/private-service-connect#service-attachments)
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.PrivateServiceConnectConnectivity} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java index af5f25e7334b..af5b7bc7d791 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java @@ -113,6 +113,25 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int SKIP_VALIDATION_FIELD_NUMBER = 2; + private boolean skipValidation_ = false; + /** + * + * + *
+   * Optional. Restart the migration job without running prior configuration
+   * verification. Defaults to `false`.
+   * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -130,6 +149,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (skipValidation_ != false) { + output.writeBool(2, skipValidation_); + } getUnknownFields().writeTo(output); } @@ -142,6 +164,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (skipValidation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, skipValidation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -159,6 +184,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) obj; if (!getName().equals(other.getName())) return false; + if (getSkipValidation() != other.getSkipValidation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,6 +198,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SKIP_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipValidation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -313,6 +341,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + skipValidation_ = false; return this; } @@ -352,6 +381,9 @@ private void buildPartial0(com.google.cloud.clouddms.v1.RestartMigrationJobReque if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.skipValidation_ = skipValidation_; + } } @java.lang.Override @@ -405,6 +437,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.RestartMigrationJobRequest bitField0_ |= 0x00000001; onChanged(); } + if (other.getSkipValidation() != false) { + setSkipValidation(other.getSkipValidation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -437,6 +472,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + skipValidation_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -562,6 +603,62 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean skipValidation_; + /** + * + * + *
+     * Optional. Restart the migration job without running prior configuration
+     * verification. Defaults to `false`.
+     * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + /** + * + * + *
+     * Optional. Restart the migration job without running prior configuration
+     * verification. Defaults to `false`.
+     * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipValidation to set. + * @return This builder for chaining. + */ + public Builder setSkipValidation(boolean value) { + + skipValidation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Restart the migration job without running prior configuration
+     * verification. Defaults to `false`.
+     * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipValidation() { + bitField0_ = (bitField0_ & ~0x00000002); + skipValidation_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java index 582de8b77859..e0039f3cd9c0 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java @@ -47,4 +47,18 @@ public interface RestartMigrationJobRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Restart the migration job without running prior configuration
+   * verification. Defaults to `false`.
+   * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + boolean getSkipValidation(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RoundToScale.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RoundToScale.java new file mode 100644 index 000000000000..706a7c8a08c7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RoundToScale.java @@ -0,0 +1,537 @@ +/* + * 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; + +/** + * + * + *
+ * This allows the data to change scale, for example if the source is 2 digits
+ * after the decimal point, specify round to scale value = 2. If for example the
+ * value needs to be converted to an integer, use round to scale value = 0.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.RoundToScale} + */ +public final class RoundToScale extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.RoundToScale) + RoundToScaleOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoundToScale.newBuilder() to construct. + private RoundToScale(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RoundToScale() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RoundToScale(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_RoundToScale_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_RoundToScale_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.RoundToScale.class, + com.google.cloud.clouddms.v1.RoundToScale.Builder.class); + } + + public static final int SCALE_FIELD_NUMBER = 1; + private int scale_ = 0; + /** + * + * + *
+   * Required. Scale value to be used
+   * 
+ * + * int32 scale = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + 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 (scale_ != 0) { + output.writeInt32(1, scale_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, scale_); + } + 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.RoundToScale)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.RoundToScale other = + (com.google.cloud.clouddms.v1.RoundToScale) obj; + + if (getScale() != other.getScale()) 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) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.RoundToScale parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.RoundToScale 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.RoundToScale parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.RoundToScale 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.RoundToScale parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.RoundToScale 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.RoundToScale parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.RoundToScale 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.RoundToScale parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.RoundToScale 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.RoundToScale 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.RoundToScale 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.RoundToScale 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; + } + /** + * + * + *
+   * This allows the data to change scale, for example if the source is 2 digits
+   * after the decimal point, specify round to scale value = 2. If for example the
+   * value needs to be converted to an integer, use round to scale value = 0.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.RoundToScale} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.RoundToScale) + com.google.cloud.clouddms.v1.RoundToScaleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_RoundToScale_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_RoundToScale_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.RoundToScale.class, + com.google.cloud.clouddms.v1.RoundToScale.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.RoundToScale.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scale_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_RoundToScale_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.RoundToScale getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.RoundToScale build() { + com.google.cloud.clouddms.v1.RoundToScale result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.RoundToScale buildPartial() { + com.google.cloud.clouddms.v1.RoundToScale result = + new com.google.cloud.clouddms.v1.RoundToScale(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.RoundToScale result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scale_ = scale_; + } + } + + @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.RoundToScale) { + return mergeFrom((com.google.cloud.clouddms.v1.RoundToScale) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.RoundToScale other) { + if (other == com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance()) return this; + if (other.getScale() != 0) { + setScale(other.getScale()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + scale_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int scale_; + /** + * + * + *
+     * Required. Scale value to be used
+     * 
+ * + * int32 scale = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * + * + *
+     * Required. Scale value to be used
+     * 
+ * + * int32 scale = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Scale value to be used
+     * 
+ * + * int32 scale = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScale() { + bitField0_ = (bitField0_ & ~0x00000001); + scale_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.RoundToScale) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.RoundToScale) + private static final com.google.cloud.clouddms.v1.RoundToScale DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.RoundToScale(); + } + + public static com.google.cloud.clouddms.v1.RoundToScale getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoundToScale 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.RoundToScale getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RoundToScaleOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RoundToScaleOrBuilder.java new file mode 100644 index 000000000000..eb6658dd0dde --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RoundToScaleOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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 RoundToScaleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.RoundToScale) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Scale value to be used
+   * 
+ * + * int32 scale = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scale. + */ + int getScale(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequest.java index 5851befdf840..6d6c587c8392 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequest.java @@ -191,10 +191,10 @@ public boolean getAutoCommit() { * * *
-   * Fully qualified (Uri) name of the source connection profile.
+   * Optional. Fully qualified (Uri) name of the source connection profile.
    * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the sourceConnectionProfile field is set. */ @@ -205,10 +205,10 @@ public boolean hasSourceConnectionProfile() { * * *
-   * Fully qualified (Uri) name of the source connection profile.
+   * Optional. Fully qualified (Uri) name of the source connection profile.
    * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The sourceConnectionProfile. */ @@ -232,10 +232,10 @@ public java.lang.String getSourceConnectionProfile() { * * *
-   * Fully qualified (Uri) name of the source connection profile.
+   * Optional. Fully qualified (Uri) name of the source connection profile.
    * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for sourceConnectionProfile. */ @@ -261,10 +261,12 @@ public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { * * *
-   * Fully qualified (Uri) name of the destination connection profile.
+   * Optional. Fully qualified (Uri) name of the destination connection
+   * profile.
    * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the destinationConnectionProfile field is set. */ @@ -275,10 +277,12 @@ public boolean hasDestinationConnectionProfile() { * * *
-   * Fully qualified (Uri) name of the destination connection profile.
+   * Optional. Fully qualified (Uri) name of the destination connection
+   * profile.
    * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The destinationConnectionProfile. */ @@ -302,10 +306,12 @@ public java.lang.String getDestinationConnectionProfile() { * * *
-   * Fully qualified (Uri) name of the destination connection profile.
+   * Optional. Fully qualified (Uri) name of the destination connection
+   * profile.
    * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for destinationConnectionProfile. */ @@ -960,10 +966,11 @@ public Builder clearAutoCommit() { * * *
-     * Fully qualified (Uri) name of the source connection profile.
+     * Optional. Fully qualified (Uri) name of the source connection profile.
      * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sourceConnectionProfile field is set. */ @@ -975,10 +982,11 @@ public boolean hasSourceConnectionProfile() { * * *
-     * Fully qualified (Uri) name of the source connection profile.
+     * Optional. Fully qualified (Uri) name of the source connection profile.
      * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sourceConnectionProfile. */ @@ -1003,10 +1011,11 @@ public java.lang.String getSourceConnectionProfile() { * * *
-     * Fully qualified (Uri) name of the source connection profile.
+     * Optional. Fully qualified (Uri) name of the source connection profile.
      * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for sourceConnectionProfile. */ @@ -1031,10 +1040,11 @@ public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { * * *
-     * Fully qualified (Uri) name of the source connection profile.
+     * Optional. Fully qualified (Uri) name of the source connection profile.
      * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The sourceConnectionProfile to set. * @return This builder for chaining. @@ -1052,10 +1062,11 @@ public Builder setSourceConnectionProfile(java.lang.String value) { * * *
-     * Fully qualified (Uri) name of the source connection profile.
+     * Optional. Fully qualified (Uri) name of the source connection profile.
      * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1071,10 +1082,11 @@ public Builder clearSourceConnectionProfile() { * * *
-     * Fully qualified (Uri) name of the source connection profile.
+     * Optional. Fully qualified (Uri) name of the source connection profile.
      * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes for sourceConnectionProfile to set. * @return This builder for chaining. @@ -1094,10 +1106,12 @@ public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString va * * *
-     * Fully qualified (Uri) name of the destination connection profile.
+     * Optional. Fully qualified (Uri) name of the destination connection
+     * profile.
      * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the destinationConnectionProfile field is set. */ @@ -1109,10 +1123,12 @@ public boolean hasDestinationConnectionProfile() { * * *
-     * Fully qualified (Uri) name of the destination connection profile.
+     * Optional. Fully qualified (Uri) name of the destination connection
+     * profile.
      * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The destinationConnectionProfile. */ @@ -1137,10 +1153,12 @@ public java.lang.String getDestinationConnectionProfile() { * * *
-     * Fully qualified (Uri) name of the destination connection profile.
+     * Optional. Fully qualified (Uri) name of the destination connection
+     * profile.
      * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for destinationConnectionProfile. */ @@ -1165,10 +1183,12 @@ public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { * * *
-     * Fully qualified (Uri) name of the destination connection profile.
+     * Optional. Fully qualified (Uri) name of the destination connection
+     * profile.
      * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The destinationConnectionProfile to set. * @return This builder for chaining. @@ -1186,10 +1206,12 @@ public Builder setDestinationConnectionProfile(java.lang.String value) { * * *
-     * Fully qualified (Uri) name of the destination connection profile.
+     * Optional. Fully qualified (Uri) name of the destination connection
+     * profile.
      * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1205,10 +1227,12 @@ public Builder clearDestinationConnectionProfile() { * * *
-     * Fully qualified (Uri) name of the destination connection profile.
+     * Optional. Fully qualified (Uri) name of the destination connection
+     * profile.
      * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes for destinationConnectionProfile 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/SeedConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequestOrBuilder.java index 7795eba5547f..2a2989f672e9 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequestOrBuilder.java @@ -70,10 +70,10 @@ public interface SeedConversionWorkspaceRequestOrBuilder * * *
-   * Fully qualified (Uri) name of the source connection profile.
+   * Optional. Fully qualified (Uri) name of the source connection profile.
    * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the sourceConnectionProfile field is set. */ @@ -82,10 +82,10 @@ public interface SeedConversionWorkspaceRequestOrBuilder * * *
-   * Fully qualified (Uri) name of the source connection profile.
+   * Optional. Fully qualified (Uri) name of the source connection profile.
    * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The sourceConnectionProfile. */ @@ -94,10 +94,10 @@ public interface SeedConversionWorkspaceRequestOrBuilder * * *
-   * Fully qualified (Uri) name of the source connection profile.
+   * Optional. Fully qualified (Uri) name of the source connection profile.
    * 
* - * string source_connection_profile = 100; + * string source_connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for sourceConnectionProfile. */ @@ -107,10 +107,12 @@ public interface SeedConversionWorkspaceRequestOrBuilder * * *
-   * Fully qualified (Uri) name of the destination connection profile.
+   * Optional. Fully qualified (Uri) name of the destination connection
+   * profile.
    * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the destinationConnectionProfile field is set. */ @@ -119,10 +121,12 @@ public interface SeedConversionWorkspaceRequestOrBuilder * * *
-   * Fully qualified (Uri) name of the destination connection profile.
+   * Optional. Fully qualified (Uri) name of the destination connection
+   * profile.
    * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The destinationConnectionProfile. */ @@ -131,10 +135,12 @@ public interface SeedConversionWorkspaceRequestOrBuilder * * *
-   * Fully qualified (Uri) name of the destination connection profile.
+   * Optional. Fully qualified (Uri) name of the destination connection
+   * profile.
    * 
* - * string destination_connection_profile = 101; + * string destination_connection_profile = 101 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for destinationConnectionProfile. */ diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SetTablePrimaryKey.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SetTablePrimaryKey.java new file mode 100644 index 000000000000..3ca1f6c0b5f9 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SetTablePrimaryKey.java @@ -0,0 +1,922 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type SetTablePrimaryKey.
+ * The rule is used to specify the columns and name to configure/alter the
+ * primary key of a table.
+ *
+ * The rule filter field can refer to one entity.
+ *
+ * The rule scope can be one of: Table.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SetTablePrimaryKey} + */ +public final class SetTablePrimaryKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SetTablePrimaryKey) + SetTablePrimaryKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetTablePrimaryKey.newBuilder() to construct. + private SetTablePrimaryKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetTablePrimaryKey() { + primaryKeyColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + primaryKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetTablePrimaryKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SetTablePrimaryKey.class, + com.google.cloud.clouddms.v1.SetTablePrimaryKey.Builder.class); + } + + public static final int PRIMARY_KEY_COLUMNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList primaryKeyColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the primaryKeyColumns. + */ + public com.google.protobuf.ProtocolStringList getPrimaryKeyColumnsList() { + return primaryKeyColumns_; + } + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of primaryKeyColumns. + */ + public int getPrimaryKeyColumnsCount() { + return primaryKeyColumns_.size(); + } + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The primaryKeyColumns at the given index. + */ + public java.lang.String getPrimaryKeyColumns(int index) { + return primaryKeyColumns_.get(index); + } + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the primaryKeyColumns at the given index. + */ + public com.google.protobuf.ByteString getPrimaryKeyColumnsBytes(int index) { + return primaryKeyColumns_.getByteString(index); + } + + public static final int PRIMARY_KEY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryKey_ = ""; + /** + * + * + *
+   * Optional. Name for the primary key
+   * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryKey. + */ + @java.lang.Override + public java.lang.String getPrimaryKey() { + java.lang.Object ref = primaryKey_; + 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(); + primaryKey_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Name for the primary key
+   * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for primaryKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrimaryKeyBytes() { + java.lang.Object ref = primaryKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < primaryKeyColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryKeyColumns_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < primaryKeyColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(primaryKeyColumns_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrimaryKeyColumnsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryKey_); + } + 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.SetTablePrimaryKey)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SetTablePrimaryKey other = + (com.google.cloud.clouddms.v1.SetTablePrimaryKey) obj; + + if (!getPrimaryKeyColumnsList().equals(other.getPrimaryKeyColumnsList())) return false; + if (!getPrimaryKey().equals(other.getPrimaryKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrimaryKeyColumnsCount() > 0) { + hash = (37 * hash) + PRIMARY_KEY_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryKeyColumnsList().hashCode(); + } + hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SetTablePrimaryKey parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SetTablePrimaryKey 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.SetTablePrimaryKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SetTablePrimaryKey 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.SetTablePrimaryKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SetTablePrimaryKey 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.SetTablePrimaryKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SetTablePrimaryKey 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.SetTablePrimaryKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SetTablePrimaryKey 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.SetTablePrimaryKey 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.SetTablePrimaryKey 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.SetTablePrimaryKey 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; + } + /** + * + * + *
+   * Options to configure rule type SetTablePrimaryKey.
+   * The rule is used to specify the columns and name to configure/alter the
+   * primary key of a table.
+   *
+   * The rule filter field can refer to one entity.
+   *
+   * The rule scope can be one of: Table.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SetTablePrimaryKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SetTablePrimaryKey) + com.google.cloud.clouddms.v1.SetTablePrimaryKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SetTablePrimaryKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SetTablePrimaryKey.class, + com.google.cloud.clouddms.v1.SetTablePrimaryKey.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SetTablePrimaryKey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + primaryKeyColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + primaryKey_ = ""; + 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_SetTablePrimaryKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SetTablePrimaryKey getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SetTablePrimaryKey build() { + com.google.cloud.clouddms.v1.SetTablePrimaryKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SetTablePrimaryKey buildPartial() { + com.google.cloud.clouddms.v1.SetTablePrimaryKey result = + new com.google.cloud.clouddms.v1.SetTablePrimaryKey(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SetTablePrimaryKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + primaryKeyColumns_.makeImmutable(); + result.primaryKeyColumns_ = primaryKeyColumns_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.primaryKey_ = primaryKey_; + } + } + + @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.SetTablePrimaryKey) { + return mergeFrom((com.google.cloud.clouddms.v1.SetTablePrimaryKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SetTablePrimaryKey other) { + if (other == com.google.cloud.clouddms.v1.SetTablePrimaryKey.getDefaultInstance()) + return this; + if (!other.primaryKeyColumns_.isEmpty()) { + if (primaryKeyColumns_.isEmpty()) { + primaryKeyColumns_ = other.primaryKeyColumns_; + bitField0_ |= 0x00000001; + } else { + ensurePrimaryKeyColumnsIsMutable(); + primaryKeyColumns_.addAll(other.primaryKeyColumns_); + } + onChanged(); + } + if (!other.getPrimaryKey().isEmpty()) { + primaryKey_ = other.primaryKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrimaryKeyColumnsIsMutable(); + primaryKeyColumns_.add(s); + break; + } // case 10 + case 18: + { + primaryKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList primaryKeyColumns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePrimaryKeyColumnsIsMutable() { + if (!primaryKeyColumns_.isModifiable()) { + primaryKeyColumns_ = new com.google.protobuf.LazyStringArrayList(primaryKeyColumns_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the primaryKeyColumns. + */ + public com.google.protobuf.ProtocolStringList getPrimaryKeyColumnsList() { + primaryKeyColumns_.makeImmutable(); + return primaryKeyColumns_; + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of primaryKeyColumns. + */ + public int getPrimaryKeyColumnsCount() { + return primaryKeyColumns_.size(); + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The primaryKeyColumns at the given index. + */ + public java.lang.String getPrimaryKeyColumns(int index) { + return primaryKeyColumns_.get(index); + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the primaryKeyColumns at the given index. + */ + public com.google.protobuf.ByteString getPrimaryKeyColumnsBytes(int index) { + return primaryKeyColumns_.getByteString(index); + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The primaryKeyColumns to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKeyColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryKeyColumnsIsMutable(); + primaryKeyColumns_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The primaryKeyColumns to add. + * @return This builder for chaining. + */ + public Builder addPrimaryKeyColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryKeyColumnsIsMutable(); + primaryKeyColumns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The primaryKeyColumns to add. + * @return This builder for chaining. + */ + public Builder addAllPrimaryKeyColumns(java.lang.Iterable values) { + ensurePrimaryKeyColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, primaryKeyColumns_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrimaryKeyColumns() { + primaryKeyColumns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. List of column names for the primary key
+     * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes of the primaryKeyColumns to add. + * @return This builder for chaining. + */ + public Builder addPrimaryKeyColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrimaryKeyColumnsIsMutable(); + primaryKeyColumns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object primaryKey_ = ""; + /** + * + * + *
+     * Optional. Name for the primary key
+     * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryKey. + */ + public java.lang.String getPrimaryKey() { + java.lang.Object ref = primaryKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Name for the primary key
+     * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for primaryKey. + */ + public com.google.protobuf.ByteString getPrimaryKeyBytes() { + java.lang.Object ref = primaryKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Name for the primary key
+     * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The primaryKey to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + primaryKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name for the primary key
+     * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryKey() { + primaryKey_ = getDefaultInstance().getPrimaryKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name for the primary key
+     * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for primaryKey to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SetTablePrimaryKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SetTablePrimaryKey) + private static final com.google.cloud.clouddms.v1.SetTablePrimaryKey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SetTablePrimaryKey(); + } + + public static com.google.cloud.clouddms.v1.SetTablePrimaryKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetTablePrimaryKey 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.SetTablePrimaryKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SetTablePrimaryKeyOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SetTablePrimaryKeyOrBuilder.java new file mode 100644 index 000000000000..f084c8c9faff --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SetTablePrimaryKeyOrBuilder.java @@ -0,0 +1,101 @@ +/* + * 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 SetTablePrimaryKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SetTablePrimaryKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the primaryKeyColumns. + */ + java.util.List getPrimaryKeyColumnsList(); + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of primaryKeyColumns. + */ + int getPrimaryKeyColumnsCount(); + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The primaryKeyColumns at the given index. + */ + java.lang.String getPrimaryKeyColumns(int index); + /** + * + * + *
+   * Required. List of column names for the primary key
+   * 
+ * + * repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the primaryKeyColumns at the given index. + */ + com.google.protobuf.ByteString getPrimaryKeyColumnsBytes(int index); + + /** + * + * + *
+   * Optional. Name for the primary key
+   * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryKey. + */ + java.lang.String getPrimaryKey(); + /** + * + * + *
+   * Optional. Name for the primary key
+   * 
+ * + * string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for primaryKey. + */ + com.google.protobuf.ByteString getPrimaryKeyBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleColumnChange.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleColumnChange.java new file mode 100644 index 000000000000..6cbf08921069 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleColumnChange.java @@ -0,0 +1,2589 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type SingleColumnChange.
+ * The rule is used to change the properties of a column.
+ *
+ * The rule filter field can refer to one entity.
+ *
+ * The rule scope can be one of: Column.
+ *
+ * When using this rule, if a field is not specified than the destination
+ * column's configuration will be the same as the one in the source column..
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SingleColumnChange} + */ +public final class SingleColumnChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SingleColumnChange) + SingleColumnChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SingleColumnChange.newBuilder() to construct. + private SingleColumnChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SingleColumnChange() { + dataType_ = ""; + charset_ = ""; + collation_ = ""; + setValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + comment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SingleColumnChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleColumnChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleColumnChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SingleColumnChange.class, + com.google.cloud.clouddms.v1.SingleColumnChange.Builder.class); + } + + public static final int DATA_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataType_ = ""; + /** + * + * + *
+   * Optional. Column data type name.
+   * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataType. + */ + @java.lang.Override + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Column data type name.
+   * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARSET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object charset_ = ""; + /** + * + * + *
+   * Optional. Charset override - instead of table level charset.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The charset. + */ + @java.lang.Override + public java.lang.String getCharset() { + java.lang.Object ref = charset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + charset_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Charset override - instead of table level charset.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for charset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCharsetBytes() { + java.lang.Object ref = charset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + charset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object collation_ = ""; + /** + * + * + *
+   * Optional. Collation override - instead of table level collation.
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The collation. + */ + @java.lang.Override + public java.lang.String getCollation() { + java.lang.Object ref = collation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collation_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Collation override - instead of table level collation.
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for collation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollationBytes() { + java.lang.Object ref = collation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 4; + private long length_ = 0L; + /** + * + * + *
+   * Optional. Column length - e.g. 50 as in varchar (50) - when relevant.
+   * 
+ * + * int64 length = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The length. + */ + @java.lang.Override + public long getLength() { + return length_; + } + + public static final int PRECISION_FIELD_NUMBER = 5; + private int precision_ = 0; + /** + * + * + *
+   * Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.
+   * 
+ * + * int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 6; + private int scale_ = 0; + /** + * + * + *
+   * Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.
+   * 
+ * + * int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + public static final int FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER = 7; + private int fractionalSecondsPrecision_ = 0; + /** + * + * + *
+   * Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)
+   * - when relevant.
+   * 
+ * + * int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fractionalSecondsPrecision. + */ + @java.lang.Override + public int getFractionalSecondsPrecision() { + return fractionalSecondsPrecision_; + } + + public static final int ARRAY_FIELD_NUMBER = 8; + private boolean array_ = false; + /** + * + * + *
+   * Optional. Is the column of array type.
+   * 
+ * + * bool array = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The array. + */ + @java.lang.Override + public boolean getArray() { + return array_; + } + + public static final int ARRAY_LENGTH_FIELD_NUMBER = 9; + private int arrayLength_ = 0; + /** + * + * + *
+   * Optional. The length of the array, only relevant if the column type is an
+   * array.
+   * 
+ * + * int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The arrayLength. + */ + @java.lang.Override + public int getArrayLength() { + return arrayLength_; + } + + public static final int NULLABLE_FIELD_NUMBER = 10; + private boolean nullable_ = false; + /** + * + * + *
+   * Optional. Is the column nullable.
+   * 
+ * + * bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + + public static final int AUTO_GENERATED_FIELD_NUMBER = 11; + private boolean autoGenerated_ = false; + /** + * + * + *
+   * Optional. Is the column auto-generated/identity.
+   * 
+ * + * bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoGenerated. + */ + @java.lang.Override + public boolean getAutoGenerated() { + return autoGenerated_; + } + + public static final int UDT_FIELD_NUMBER = 12; + private boolean udt_ = false; + /** + * + * + *
+   * Optional. Is the column a UDT (User-defined Type).
+   * 
+ * + * bool udt = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The udt. + */ + @java.lang.Override + public boolean getUdt() { + return udt_; + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 13; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + public static final int SET_VALUES_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList setValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the setValues. + */ + public com.google.protobuf.ProtocolStringList getSetValuesList() { + return setValues_; + } + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of setValues. + */ + public int getSetValuesCount() { + return setValues_.size(); + } + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The setValues at the given index. + */ + public java.lang.String getSetValues(int index) { + return setValues_.get(index); + } + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the setValues at the given index. + */ + public com.google.protobuf.ByteString getSetValuesBytes(int index) { + return setValues_.getByteString(index); + } + + public static final int COMMENT_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; + /** + * + * + *
+   * Optional. Comment associated with the column.
+   * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + @java.lang.Override + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Comment associated with the column.
+   * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, charset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collation_); + } + if (length_ != 0L) { + output.writeInt64(4, length_); + } + if (precision_ != 0) { + output.writeInt32(5, precision_); + } + if (scale_ != 0) { + output.writeInt32(6, scale_); + } + if (fractionalSecondsPrecision_ != 0) { + output.writeInt32(7, fractionalSecondsPrecision_); + } + if (array_ != false) { + output.writeBool(8, array_); + } + if (arrayLength_ != 0) { + output.writeInt32(9, arrayLength_); + } + if (nullable_ != false) { + output.writeBool(10, nullable_); + } + if (autoGenerated_ != false) { + output.writeBool(11, autoGenerated_); + } + if (udt_ != false) { + output.writeBool(12, udt_); + } + if (customFeatures_ != null) { + output.writeMessage(13, getCustomFeatures()); + } + for (int i = 0; i < setValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, setValues_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, comment_); + } + 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(dataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, charset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collation_); + } + if (length_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, length_); + } + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, precision_); + } + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, scale_); + } + if (fractionalSecondsPrecision_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(7, fractionalSecondsPrecision_); + } + if (array_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, array_); + } + if (arrayLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, arrayLength_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, nullable_); + } + if (autoGenerated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, autoGenerated_); + } + if (udt_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, udt_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCustomFeatures()); + } + { + int dataSize = 0; + for (int i = 0; i < setValues_.size(); i++) { + dataSize += computeStringSizeNoTag(setValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getSetValuesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, comment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.SingleColumnChange)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SingleColumnChange other = + (com.google.cloud.clouddms.v1.SingleColumnChange) obj; + + if (!getDataType().equals(other.getDataType())) return false; + if (!getCharset().equals(other.getCharset())) return false; + if (!getCollation().equals(other.getCollation())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (getFractionalSecondsPrecision() != other.getFractionalSecondsPrecision()) return false; + if (getArray() != other.getArray()) return false; + if (getArrayLength() != other.getArrayLength()) return false; + if (getNullable() != other.getNullable()) return false; + if (getAutoGenerated() != other.getAutoGenerated()) return false; + if (getUdt() != other.getUdt()) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getSetValuesList().equals(other.getSetValuesList())) return false; + if (!getComment().equals(other.getComment())) return false; + if (!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) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + CHARSET_FIELD_NUMBER; + hash = (53 * hash) + getCharset().hashCode(); + hash = (37 * hash) + COLLATION_FIELD_NUMBER; + hash = (53 * hash) + getCollation().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLength()); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (37 * hash) + FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getFractionalSecondsPrecision(); + hash = (37 * hash) + ARRAY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArray()); + hash = (37 * hash) + ARRAY_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getArrayLength(); + hash = (37 * hash) + NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (37 * hash) + AUTO_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoGenerated()); + hash = (37 * hash) + UDT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUdt()); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + if (getSetValuesCount() > 0) { + hash = (37 * hash) + SET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getSetValuesList().hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SingleColumnChange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SingleColumnChange 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.SingleColumnChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SingleColumnChange 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.SingleColumnChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SingleColumnChange 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.SingleColumnChange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SingleColumnChange 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.SingleColumnChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SingleColumnChange 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.SingleColumnChange 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.SingleColumnChange 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.SingleColumnChange 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; + } + /** + * + * + *
+   * Options to configure rule type SingleColumnChange.
+   * The rule is used to change the properties of a column.
+   *
+   * The rule filter field can refer to one entity.
+   *
+   * The rule scope can be one of: Column.
+   *
+   * When using this rule, if a field is not specified than the destination
+   * column's configuration will be the same as the one in the source column..
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SingleColumnChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SingleColumnChange) + com.google.cloud.clouddms.v1.SingleColumnChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleColumnChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleColumnChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SingleColumnChange.class, + com.google.cloud.clouddms.v1.SingleColumnChange.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SingleColumnChange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataType_ = ""; + charset_ = ""; + collation_ = ""; + length_ = 0L; + precision_ = 0; + scale_ = 0; + fractionalSecondsPrecision_ = 0; + array_ = false; + arrayLength_ = 0; + nullable_ = false; + autoGenerated_ = false; + udt_ = false; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + setValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + comment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleColumnChange_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleColumnChange getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleColumnChange build() { + com.google.cloud.clouddms.v1.SingleColumnChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleColumnChange buildPartial() { + com.google.cloud.clouddms.v1.SingleColumnChange result = + new com.google.cloud.clouddms.v1.SingleColumnChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SingleColumnChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataType_ = dataType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.charset_ = charset_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.collation_ = collation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.length_ = length_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.precision_ = precision_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.scale_ = scale_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.fractionalSecondsPrecision_ = fractionalSecondsPrecision_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.array_ = array_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.arrayLength_ = arrayLength_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.nullable_ = nullable_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.autoGenerated_ = autoGenerated_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.udt_ = udt_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + setValues_.makeImmutable(); + result.setValues_ = setValues_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.comment_ = comment_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.SingleColumnChange) { + return mergeFrom((com.google.cloud.clouddms.v1.SingleColumnChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SingleColumnChange other) { + if (other == com.google.cloud.clouddms.v1.SingleColumnChange.getDefaultInstance()) + return this; + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCharset().isEmpty()) { + charset_ = other.charset_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCollation().isEmpty()) { + collation_ = other.collation_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getLength() != 0L) { + setLength(other.getLength()); + } + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + if (other.getFractionalSecondsPrecision() != 0) { + setFractionalSecondsPrecision(other.getFractionalSecondsPrecision()); + } + if (other.getArray() != false) { + setArray(other.getArray()); + } + if (other.getArrayLength() != 0) { + setArrayLength(other.getArrayLength()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getAutoGenerated() != false) { + setAutoGenerated(other.getAutoGenerated()); + } + if (other.getUdt() != false) { + setUdt(other.getUdt()); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + if (!other.setValues_.isEmpty()) { + if (setValues_.isEmpty()) { + setValues_ = other.setValues_; + bitField0_ |= 0x00002000; + } else { + ensureSetValuesIsMutable(); + setValues_.addAll(other.setValues_); + } + onChanged(); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + bitField0_ |= 0x00004000; + 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: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + charset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + collation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + length_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + precision_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + scale_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + fractionalSecondsPrecision_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + array_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + arrayLength_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + autoGenerated_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + udt_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSetValuesIsMutable(); + setValues_.add(s); + break; + } // case 114 + case 122: + { + comment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + 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 dataType_ = ""; + /** + * + * + *
+     * Optional. Column data type name.
+     * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataType. + */ + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Column data type name.
+     * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataType. + */ + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Column data type name.
+     * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataType to set. + * @return This builder for chaining. + */ + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column data type name.
+     * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataType() { + dataType_ = getDefaultInstance().getDataType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column data type name.
+     * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dataType to set. + * @return This builder for chaining. + */ + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object charset_ = ""; + /** + * + * + *
+     * Optional. Charset override - instead of table level charset.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The charset. + */ + public java.lang.String getCharset() { + java.lang.Object ref = charset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + charset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Charset override - instead of table level charset.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for charset. + */ + public com.google.protobuf.ByteString getCharsetBytes() { + java.lang.Object ref = charset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + charset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Charset override - instead of table level charset.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The charset to set. + * @return This builder for chaining. + */ + public Builder setCharset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + charset_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Charset override - instead of table level charset.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCharset() { + charset_ = getDefaultInstance().getCharset(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Charset override - instead of table level charset.
+     * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for charset to set. + * @return This builder for chaining. + */ + public Builder setCharsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + charset_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object collation_ = ""; + /** + * + * + *
+     * Optional. Collation override - instead of table level collation.
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The collation. + */ + public java.lang.String getCollation() { + java.lang.Object ref = collation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Collation override - instead of table level collation.
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for collation. + */ + public com.google.protobuf.ByteString getCollationBytes() { + java.lang.Object ref = collation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Collation override - instead of table level collation.
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The collation to set. + * @return This builder for chaining. + */ + public Builder setCollation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Collation override - instead of table level collation.
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCollation() { + collation_ = getDefaultInstance().getCollation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Collation override - instead of table level collation.
+     * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for collation to set. + * @return This builder for chaining. + */ + public Builder setCollationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long length_; + /** + * + * + *
+     * Optional. Column length - e.g. 50 as in varchar (50) - when relevant.
+     * 
+ * + * int64 length = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The length. + */ + @java.lang.Override + public long getLength() { + return length_; + } + /** + * + * + *
+     * Optional. Column length - e.g. 50 as in varchar (50) - when relevant.
+     * 
+ * + * int64 length = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(long value) { + + length_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column length - e.g. 50 as in varchar (50) - when relevant.
+     * 
+ * + * int64 length = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000008); + length_ = 0L; + onChanged(); + return this; + } + + private int precision_; + /** + * + * + *
+     * Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.
+     * 
+ * + * int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + /** + * + * + *
+     * Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.
+     * 
+ * + * int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The precision to set. + * @return This builder for chaining. + */ + public Builder setPrecision(int value) { + + precision_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.
+     * 
+ * + * int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrecision() { + bitField0_ = (bitField0_ & ~0x00000010); + precision_ = 0; + onChanged(); + return this; + } + + private int scale_; + /** + * + * + *
+     * Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.
+     * 
+ * + * int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * + * + *
+     * Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.
+     * 
+ * + * int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.
+     * 
+ * + * int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScale() { + bitField0_ = (bitField0_ & ~0x00000020); + scale_ = 0; + onChanged(); + return this; + } + + private int fractionalSecondsPrecision_; + /** + * + * + *
+     * Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)
+     * - when relevant.
+     * 
+ * + * int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fractionalSecondsPrecision. + */ + @java.lang.Override + public int getFractionalSecondsPrecision() { + return fractionalSecondsPrecision_; + } + /** + * + * + *
+     * Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)
+     * - when relevant.
+     * 
+ * + * int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The fractionalSecondsPrecision to set. + * @return This builder for chaining. + */ + public Builder setFractionalSecondsPrecision(int value) { + + fractionalSecondsPrecision_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)
+     * - when relevant.
+     * 
+ * + * int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFractionalSecondsPrecision() { + bitField0_ = (bitField0_ & ~0x00000040); + fractionalSecondsPrecision_ = 0; + onChanged(); + return this; + } + + private boolean array_; + /** + * + * + *
+     * Optional. Is the column of array type.
+     * 
+ * + * bool array = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The array. + */ + @java.lang.Override + public boolean getArray() { + return array_; + } + /** + * + * + *
+     * Optional. Is the column of array type.
+     * 
+ * + * bool array = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The array to set. + * @return This builder for chaining. + */ + public Builder setArray(boolean value) { + + array_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Is the column of array type.
+     * 
+ * + * bool array = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArray() { + bitField0_ = (bitField0_ & ~0x00000080); + array_ = false; + onChanged(); + return this; + } + + private int arrayLength_; + /** + * + * + *
+     * Optional. The length of the array, only relevant if the column type is an
+     * array.
+     * 
+ * + * int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The arrayLength. + */ + @java.lang.Override + public int getArrayLength() { + return arrayLength_; + } + /** + * + * + *
+     * Optional. The length of the array, only relevant if the column type is an
+     * array.
+     * 
+ * + * int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The arrayLength to set. + * @return This builder for chaining. + */ + public Builder setArrayLength(int value) { + + arrayLength_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The length of the array, only relevant if the column type is an
+     * array.
+     * 
+ * + * int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArrayLength() { + bitField0_ = (bitField0_ & ~0x00000100); + arrayLength_ = 0; + onChanged(); + return this; + } + + private boolean nullable_; + /** + * + * + *
+     * Optional. Is the column nullable.
+     * 
+ * + * bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + /** + * + * + *
+     * Optional. Is the column nullable.
+     * 
+ * + * bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nullable to set. + * @return This builder for chaining. + */ + public Builder setNullable(boolean value) { + + nullable_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Is the column nullable.
+     * 
+ * + * bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNullable() { + bitField0_ = (bitField0_ & ~0x00000200); + nullable_ = false; + onChanged(); + return this; + } + + private boolean autoGenerated_; + /** + * + * + *
+     * Optional. Is the column auto-generated/identity.
+     * 
+ * + * bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoGenerated. + */ + @java.lang.Override + public boolean getAutoGenerated() { + return autoGenerated_; + } + /** + * + * + *
+     * Optional. Is the column auto-generated/identity.
+     * 
+ * + * bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoGenerated to set. + * @return This builder for chaining. + */ + public Builder setAutoGenerated(boolean value) { + + autoGenerated_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Is the column auto-generated/identity.
+     * 
+ * + * bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoGenerated() { + bitField0_ = (bitField0_ & ~0x00000400); + autoGenerated_ = false; + onChanged(); + return this; + } + + private boolean udt_; + /** + * + * + *
+     * Optional. Is the column a UDT (User-defined Type).
+     * 
+ * + * bool udt = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The udt. + */ + @java.lang.Override + public boolean getUdt() { + return udt_; + } + /** + * + * + *
+     * Optional. Is the column a UDT (User-defined Type).
+     * 
+ * + * bool udt = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The udt to set. + * @return This builder for chaining. + */ + public Builder setUdt(boolean value) { + + udt_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Is the column a UDT (User-defined Type).
+     * 
+ * + * bool udt = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUdt() { + bitField0_ = (bitField0_ & ~0x00000800); + udt_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00001000); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Optional. Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList setValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSetValuesIsMutable() { + if (!setValues_.isModifiable()) { + setValues_ = new com.google.protobuf.LazyStringArrayList(setValues_); + } + bitField0_ |= 0x00002000; + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the setValues. + */ + public com.google.protobuf.ProtocolStringList getSetValuesList() { + setValues_.makeImmutable(); + return setValues_; + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of setValues. + */ + public int getSetValuesCount() { + return setValues_.size(); + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The setValues at the given index. + */ + public java.lang.String getSetValues(int index) { + return setValues_.get(index); + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the setValues at the given index. + */ + public com.google.protobuf.ByteString getSetValuesBytes(int index) { + return setValues_.getByteString(index); + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The setValues to set. + * @return This builder for chaining. + */ + public Builder setSetValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSetValuesIsMutable(); + setValues_.set(index, value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The setValues to add. + * @return This builder for chaining. + */ + public Builder addSetValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSetValuesIsMutable(); + setValues_.add(value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The setValues to add. + * @return This builder for chaining. + */ + public Builder addAllSetValues(java.lang.Iterable values) { + ensureSetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, setValues_); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSetValues() { + setValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the list of values allowed in the column.
+     * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the setValues to add. + * @return This builder for chaining. + */ + public Builder addSetValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSetValuesIsMutable(); + setValues_.add(value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object comment_ = ""; + /** + * + * + *
+     * Optional. Comment associated with the column.
+     * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Comment associated with the column.
+     * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Comment associated with the column.
+     * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The comment to set. + * @return This builder for chaining. + */ + public Builder setComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Comment associated with the column.
+     * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComment() { + comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Comment associated with the column.
+     * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for comment to set. + * @return This builder for chaining. + */ + public Builder setCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; + bitField0_ |= 0x00004000; + 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.SingleColumnChange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SingleColumnChange) + private static final com.google.cloud.clouddms.v1.SingleColumnChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SingleColumnChange(); + } + + public static com.google.cloud.clouddms.v1.SingleColumnChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleColumnChange 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.SingleColumnChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleColumnChangeOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleColumnChangeOrBuilder.java new file mode 100644 index 000000000000..796f9647f4bb --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleColumnChangeOrBuilder.java @@ -0,0 +1,333 @@ +/* + * 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 SingleColumnChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SingleColumnChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Column data type name.
+   * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataType. + */ + java.lang.String getDataType(); + /** + * + * + *
+   * Optional. Column data type name.
+   * 
+ * + * string data_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataType. + */ + com.google.protobuf.ByteString getDataTypeBytes(); + + /** + * + * + *
+   * Optional. Charset override - instead of table level charset.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The charset. + */ + java.lang.String getCharset(); + /** + * + * + *
+   * Optional. Charset override - instead of table level charset.
+   * 
+ * + * string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for charset. + */ + com.google.protobuf.ByteString getCharsetBytes(); + + /** + * + * + *
+   * Optional. Collation override - instead of table level collation.
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The collation. + */ + java.lang.String getCollation(); + /** + * + * + *
+   * Optional. Collation override - instead of table level collation.
+   * 
+ * + * string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for collation. + */ + com.google.protobuf.ByteString getCollationBytes(); + + /** + * + * + *
+   * Optional. Column length - e.g. 50 as in varchar (50) - when relevant.
+   * 
+ * + * int64 length = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The length. + */ + long getLength(); + + /** + * + * + *
+   * Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.
+   * 
+ * + * int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The precision. + */ + int getPrecision(); + + /** + * + * + *
+   * Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.
+   * 
+ * + * int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scale. + */ + int getScale(); + + /** + * + * + *
+   * Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)
+   * - when relevant.
+   * 
+ * + * int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fractionalSecondsPrecision. + */ + int getFractionalSecondsPrecision(); + + /** + * + * + *
+   * Optional. Is the column of array type.
+   * 
+ * + * bool array = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The array. + */ + boolean getArray(); + + /** + * + * + *
+   * Optional. The length of the array, only relevant if the column type is an
+   * array.
+   * 
+ * + * int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The arrayLength. + */ + int getArrayLength(); + + /** + * + * + *
+   * Optional. Is the column nullable.
+   * 
+ * + * bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nullable. + */ + boolean getNullable(); + + /** + * + * + *
+   * Optional. Is the column auto-generated/identity.
+   * 
+ * + * bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoGenerated. + */ + boolean getAutoGenerated(); + + /** + * + * + *
+   * Optional. Is the column a UDT (User-defined Type).
+   * 
+ * + * bool udt = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The udt. + */ + boolean getUdt(); + + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Optional. Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); + + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the setValues. + */ + java.util.List getSetValuesList(); + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of setValues. + */ + int getSetValuesCount(); + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The setValues at the given index. + */ + java.lang.String getSetValues(int index); + /** + * + * + *
+   * Optional. Specifies the list of values allowed in the column.
+   * 
+ * + * repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the setValues at the given index. + */ + com.google.protobuf.ByteString getSetValuesBytes(int index); + + /** + * + * + *
+   * Optional. Comment associated with the column.
+   * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + java.lang.String getComment(); + /** + * + * + *
+   * Optional. Comment associated with the column.
+   * 
+ * + * string comment = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + com.google.protobuf.ByteString getCommentBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleEntityRename.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleEntityRename.java new file mode 100644 index 000000000000..12744fee8bd0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleEntityRename.java @@ -0,0 +1,638 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type SingleEntityRename.
+ * The rule is used to rename an entity.
+ *
+ * The rule filter field can refer to only one entity.
+ *
+ * The rule scope can be one of: Database, Schema, Table, Column, Constraint,
+ * Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT,
+ * Synonym
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SingleEntityRename} + */ +public final class SingleEntityRename extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SingleEntityRename) + SingleEntityRenameOrBuilder { + private static final long serialVersionUID = 0L; + // Use SingleEntityRename.newBuilder() to construct. + private SingleEntityRename(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SingleEntityRename() { + newName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SingleEntityRename(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleEntityRename_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleEntityRename_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SingleEntityRename.class, + com.google.cloud.clouddms.v1.SingleEntityRename.Builder.class); + } + + public static final int NEW_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object newName_ = ""; + /** + * + * + *
+   * Required. The new name of the destination entity
+   * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newName. + */ + @java.lang.Override + public java.lang.String getNewName() { + java.lang.Object ref = newName_; + 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(); + newName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The new name of the destination entity
+   * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewNameBytes() { + java.lang.Object ref = newName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newName_ = 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(newName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, newName_); + } + 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(newName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, newName_); + } + 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.SingleEntityRename)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SingleEntityRename other = + (com.google.cloud.clouddms.v1.SingleEntityRename) obj; + + if (!getNewName().equals(other.getNewName())) 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) + NEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNewName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SingleEntityRename parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SingleEntityRename 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.SingleEntityRename parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SingleEntityRename 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.SingleEntityRename parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SingleEntityRename 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.SingleEntityRename parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SingleEntityRename 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.SingleEntityRename parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SingleEntityRename 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.SingleEntityRename 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.SingleEntityRename 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.SingleEntityRename 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; + } + /** + * + * + *
+   * Options to configure rule type SingleEntityRename.
+   * The rule is used to rename an entity.
+   *
+   * The rule filter field can refer to only one entity.
+   *
+   * The rule scope can be one of: Database, Schema, Table, Column, Constraint,
+   * Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT,
+   * Synonym
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SingleEntityRename} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SingleEntityRename) + com.google.cloud.clouddms.v1.SingleEntityRenameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleEntityRename_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SingleEntityRename_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SingleEntityRename.class, + com.google.cloud.clouddms.v1.SingleEntityRename.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SingleEntityRename.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + newName_ = ""; + 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_SingleEntityRename_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleEntityRename getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleEntityRename build() { + com.google.cloud.clouddms.v1.SingleEntityRename result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SingleEntityRename buildPartial() { + com.google.cloud.clouddms.v1.SingleEntityRename result = + new com.google.cloud.clouddms.v1.SingleEntityRename(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SingleEntityRename result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.newName_ = newName_; + } + } + + @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.SingleEntityRename) { + return mergeFrom((com.google.cloud.clouddms.v1.SingleEntityRename) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SingleEntityRename other) { + if (other == com.google.cloud.clouddms.v1.SingleEntityRename.getDefaultInstance()) + return this; + if (!other.getNewName().isEmpty()) { + newName_ = other.newName_; + 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: + { + newName_ = 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 newName_ = ""; + /** + * + * + *
+     * Required. The new name of the destination entity
+     * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newName. + */ + public java.lang.String getNewName() { + java.lang.Object ref = newName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The new name of the destination entity
+     * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newName. + */ + public com.google.protobuf.ByteString getNewNameBytes() { + java.lang.Object ref = newName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The new name of the destination entity
+     * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The newName to set. + * @return This builder for chaining. + */ + public Builder setNewName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The new name of the destination entity
+     * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNewName() { + newName_ = getDefaultInstance().getNewName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The new name of the destination entity
+     * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for newName to set. + * @return This builder for chaining. + */ + public Builder setNewNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newName_ = 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.SingleEntityRename) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SingleEntityRename) + private static final com.google.cloud.clouddms.v1.SingleEntityRename DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SingleEntityRename(); + } + + public static com.google.cloud.clouddms.v1.SingleEntityRename getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleEntityRename 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.SingleEntityRename getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleEntityRenameOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleEntityRenameOrBuilder.java new file mode 100644 index 000000000000..be61ee9f2934 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SingleEntityRenameOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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 SingleEntityRenameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SingleEntityRename) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The new name of the destination entity
+   * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The newName. + */ + java.lang.String getNewName(); + /** + * + * + *
+   * Required. The new name of the destination entity
+   * 
+ * + * string new_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for newName. + */ + com.google.protobuf.ByteString getNewNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SinglePackageChange.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SinglePackageChange.java new file mode 100644 index 000000000000..81d137558ac6 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SinglePackageChange.java @@ -0,0 +1,816 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type SinglePackageChange.
+ * The rule is used to alter the sql code for a package entities.
+ *
+ * The rule filter field can refer to one entity.
+ *
+ * The rule scope can be: Package
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SinglePackageChange} + */ +public final class SinglePackageChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SinglePackageChange) + SinglePackageChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SinglePackageChange.newBuilder() to construct. + private SinglePackageChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SinglePackageChange() { + packageDescription_ = ""; + packageBody_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SinglePackageChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SinglePackageChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SinglePackageChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SinglePackageChange.class, + com.google.cloud.clouddms.v1.SinglePackageChange.Builder.class); + } + + public static final int PACKAGE_DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object packageDescription_ = ""; + /** + * + * + *
+   * Optional. Sql code for package description
+   * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The packageDescription. + */ + @java.lang.Override + public java.lang.String getPackageDescription() { + java.lang.Object ref = packageDescription_; + 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(); + packageDescription_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Sql code for package description
+   * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for packageDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageDescriptionBytes() { + java.lang.Object ref = packageDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PACKAGE_BODY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object packageBody_ = ""; + /** + * + * + *
+   * Optional. Sql code for package body
+   * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The packageBody. + */ + @java.lang.Override + public java.lang.String getPackageBody() { + java.lang.Object ref = packageBody_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageBody_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Sql code for package body
+   * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for packageBody. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageBodyBytes() { + java.lang.Object ref = packageBody_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageBody_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(packageDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageBody_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageBody_); + } + 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(packageDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageBody_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packageBody_); + } + 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.SinglePackageChange)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SinglePackageChange other = + (com.google.cloud.clouddms.v1.SinglePackageChange) obj; + + if (!getPackageDescription().equals(other.getPackageDescription())) return false; + if (!getPackageBody().equals(other.getPackageBody())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PACKAGE_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getPackageDescription().hashCode(); + hash = (37 * hash) + PACKAGE_BODY_FIELD_NUMBER; + hash = (53 * hash) + getPackageBody().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SinglePackageChange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SinglePackageChange 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.SinglePackageChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SinglePackageChange 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.SinglePackageChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SinglePackageChange 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.SinglePackageChange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SinglePackageChange 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.SinglePackageChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SinglePackageChange 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.SinglePackageChange 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.SinglePackageChange 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.SinglePackageChange 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; + } + /** + * + * + *
+   * Options to configure rule type SinglePackageChange.
+   * The rule is used to alter the sql code for a package entities.
+   *
+   * The rule filter field can refer to one entity.
+   *
+   * The rule scope can be: Package
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SinglePackageChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SinglePackageChange) + com.google.cloud.clouddms.v1.SinglePackageChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SinglePackageChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SinglePackageChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SinglePackageChange.class, + com.google.cloud.clouddms.v1.SinglePackageChange.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SinglePackageChange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + packageDescription_ = ""; + packageBody_ = ""; + 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_SinglePackageChange_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SinglePackageChange getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SinglePackageChange build() { + com.google.cloud.clouddms.v1.SinglePackageChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SinglePackageChange buildPartial() { + com.google.cloud.clouddms.v1.SinglePackageChange result = + new com.google.cloud.clouddms.v1.SinglePackageChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SinglePackageChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.packageDescription_ = packageDescription_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.packageBody_ = packageBody_; + } + } + + @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.SinglePackageChange) { + return mergeFrom((com.google.cloud.clouddms.v1.SinglePackageChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SinglePackageChange other) { + if (other == com.google.cloud.clouddms.v1.SinglePackageChange.getDefaultInstance()) + return this; + if (!other.getPackageDescription().isEmpty()) { + packageDescription_ = other.packageDescription_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPackageBody().isEmpty()) { + packageBody_ = other.packageBody_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + packageDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + packageBody_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object packageDescription_ = ""; + /** + * + * + *
+     * Optional. Sql code for package description
+     * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The packageDescription. + */ + public java.lang.String getPackageDescription() { + java.lang.Object ref = packageDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Sql code for package description
+     * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for packageDescription. + */ + public com.google.protobuf.ByteString getPackageDescriptionBytes() { + java.lang.Object ref = packageDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Sql code for package description
+     * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The packageDescription to set. + * @return This builder for chaining. + */ + public Builder setPackageDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageDescription_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Sql code for package description
+     * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPackageDescription() { + packageDescription_ = getDefaultInstance().getPackageDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Sql code for package description
+     * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for packageDescription to set. + * @return This builder for chaining. + */ + public Builder setPackageDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageDescription_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object packageBody_ = ""; + /** + * + * + *
+     * Optional. Sql code for package body
+     * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The packageBody. + */ + public java.lang.String getPackageBody() { + java.lang.Object ref = packageBody_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageBody_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Sql code for package body
+     * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for packageBody. + */ + public com.google.protobuf.ByteString getPackageBodyBytes() { + java.lang.Object ref = packageBody_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageBody_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Sql code for package body
+     * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The packageBody to set. + * @return This builder for chaining. + */ + public Builder setPackageBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Sql code for package body
+     * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPackageBody() { + packageBody_ = getDefaultInstance().getPackageBody(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Sql code for package body
+     * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for packageBody to set. + * @return This builder for chaining. + */ + public Builder setPackageBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @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.SinglePackageChange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SinglePackageChange) + private static final com.google.cloud.clouddms.v1.SinglePackageChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SinglePackageChange(); + } + + public static com.google.cloud.clouddms.v1.SinglePackageChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SinglePackageChange 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.SinglePackageChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SinglePackageChangeOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SinglePackageChangeOrBuilder.java new file mode 100644 index 000000000000..b2c1f12543c6 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SinglePackageChangeOrBuilder.java @@ -0,0 +1,75 @@ +/* + * 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 SinglePackageChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SinglePackageChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Sql code for package description
+   * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The packageDescription. + */ + java.lang.String getPackageDescription(); + /** + * + * + *
+   * Optional. Sql code for package description
+   * 
+ * + * string package_description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for packageDescription. + */ + com.google.protobuf.ByteString getPackageDescriptionBytes(); + + /** + * + * + *
+   * Optional. Sql code for package body
+   * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The packageBody. + */ + java.lang.String getPackageBody(); + /** + * + * + *
+   * Optional. Sql code for package body
+   * 
+ * + * string package_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for packageBody. + */ + com.google.protobuf.ByteString getPackageBodyBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceNumericFilter.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceNumericFilter.java new file mode 100644 index 000000000000..73f68b9f1e2d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceNumericFilter.java @@ -0,0 +1,1005 @@ +/* + * 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; + +/** + * + * + *
+ * Filter for fixed point number data types such as NUMERIC/NUMBER
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SourceNumericFilter} + */ +public final class SourceNumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SourceNumericFilter) + SourceNumericFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceNumericFilter.newBuilder() to construct. + private SourceNumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceNumericFilter() { + numericFilterOption_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceNumericFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SourceNumericFilter.class, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder.class); + } + + public static final int SOURCE_MIN_SCALE_FILTER_FIELD_NUMBER = 1; + private int sourceMinScaleFilter_ = 0; + /** + * + * + *
+   * Optional. The filter will match columns with scale greater than or equal to
+   * this number.
+   * 
+ * + * int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinScaleFilter. + */ + @java.lang.Override + public int getSourceMinScaleFilter() { + return sourceMinScaleFilter_; + } + + public static final int SOURCE_MAX_SCALE_FILTER_FIELD_NUMBER = 2; + private int sourceMaxScaleFilter_ = 0; + /** + * + * + *
+   * Optional. The filter will match columns with scale smaller than or equal to
+   * this number.
+   * 
+ * + * int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxScaleFilter. + */ + @java.lang.Override + public int getSourceMaxScaleFilter() { + return sourceMaxScaleFilter_; + } + + public static final int SOURCE_MIN_PRECISION_FILTER_FIELD_NUMBER = 3; + private int sourceMinPrecisionFilter_ = 0; + /** + * + * + *
+   * Optional. The filter will match columns with precision greater than or
+   * equal to this number.
+   * 
+ * + * int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinPrecisionFilter. + */ + @java.lang.Override + public int getSourceMinPrecisionFilter() { + return sourceMinPrecisionFilter_; + } + + public static final int SOURCE_MAX_PRECISION_FILTER_FIELD_NUMBER = 4; + private int sourceMaxPrecisionFilter_ = 0; + /** + * + * + *
+   * Optional. The filter will match columns with precision smaller than or
+   * equal to this number.
+   * 
+ * + * int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxPrecisionFilter. + */ + @java.lang.Override + public int getSourceMaxPrecisionFilter() { + return sourceMaxPrecisionFilter_; + } + + public static final int NUMERIC_FILTER_OPTION_FIELD_NUMBER = 5; + private int numericFilterOption_ = 0; + /** + * + * + *
+   * Required. Enum to set the option defining the datatypes numeric filter has
+   * to be applied to
+   * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for numericFilterOption. + */ + @java.lang.Override + public int getNumericFilterOptionValue() { + return numericFilterOption_; + } + /** + * + * + *
+   * Required. Enum to set the option defining the datatypes numeric filter has
+   * to be applied to
+   * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The numericFilterOption. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.NumericFilterOption getNumericFilterOption() { + com.google.cloud.clouddms.v1.NumericFilterOption result = + com.google.cloud.clouddms.v1.NumericFilterOption.forNumber(numericFilterOption_); + return result == null ? com.google.cloud.clouddms.v1.NumericFilterOption.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceMinScaleFilter_ != 0) { + output.writeInt32(1, sourceMinScaleFilter_); + } + if (sourceMaxScaleFilter_ != 0) { + output.writeInt32(2, sourceMaxScaleFilter_); + } + if (sourceMinPrecisionFilter_ != 0) { + output.writeInt32(3, sourceMinPrecisionFilter_); + } + if (sourceMaxPrecisionFilter_ != 0) { + output.writeInt32(4, sourceMaxPrecisionFilter_); + } + if (numericFilterOption_ + != com.google.cloud.clouddms.v1.NumericFilterOption.NUMERIC_FILTER_OPTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, numericFilterOption_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceMinScaleFilter_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sourceMinScaleFilter_); + } + if (sourceMaxScaleFilter_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sourceMaxScaleFilter_); + } + if (sourceMinPrecisionFilter_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, sourceMinPrecisionFilter_); + } + if (sourceMaxPrecisionFilter_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, sourceMaxPrecisionFilter_); + } + if (numericFilterOption_ + != com.google.cloud.clouddms.v1.NumericFilterOption.NUMERIC_FILTER_OPTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, numericFilterOption_); + } + 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.SourceNumericFilter)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SourceNumericFilter other = + (com.google.cloud.clouddms.v1.SourceNumericFilter) obj; + + if (getSourceMinScaleFilter() != other.getSourceMinScaleFilter()) return false; + if (getSourceMaxScaleFilter() != other.getSourceMaxScaleFilter()) return false; + if (getSourceMinPrecisionFilter() != other.getSourceMinPrecisionFilter()) return false; + if (getSourceMaxPrecisionFilter() != other.getSourceMaxPrecisionFilter()) return false; + if (numericFilterOption_ != other.numericFilterOption_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_MIN_SCALE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceMinScaleFilter(); + hash = (37 * hash) + SOURCE_MAX_SCALE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceMaxScaleFilter(); + hash = (37 * hash) + SOURCE_MIN_PRECISION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceMinPrecisionFilter(); + hash = (37 * hash) + SOURCE_MAX_PRECISION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSourceMaxPrecisionFilter(); + hash = (37 * hash) + NUMERIC_FILTER_OPTION_FIELD_NUMBER; + hash = (53 * hash) + numericFilterOption_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SourceNumericFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceNumericFilter 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.SourceNumericFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceNumericFilter 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.SourceNumericFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceNumericFilter 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.SourceNumericFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SourceNumericFilter 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.SourceNumericFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SourceNumericFilter 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.SourceNumericFilter 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.SourceNumericFilter 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.SourceNumericFilter 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; + } + /** + * + * + *
+   * Filter for fixed point number data types such as NUMERIC/NUMBER
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SourceNumericFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SourceNumericFilter) + com.google.cloud.clouddms.v1.SourceNumericFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SourceNumericFilter.class, + com.google.cloud.clouddms.v1.SourceNumericFilter.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SourceNumericFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceMinScaleFilter_ = 0; + sourceMaxScaleFilter_ = 0; + sourceMinPrecisionFilter_ = 0; + sourceMaxPrecisionFilter_ = 0; + numericFilterOption_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceNumericFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilter getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilter build() { + com.google.cloud.clouddms.v1.SourceNumericFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceNumericFilter buildPartial() { + com.google.cloud.clouddms.v1.SourceNumericFilter result = + new com.google.cloud.clouddms.v1.SourceNumericFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SourceNumericFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceMinScaleFilter_ = sourceMinScaleFilter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceMaxScaleFilter_ = sourceMaxScaleFilter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceMinPrecisionFilter_ = sourceMinPrecisionFilter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sourceMaxPrecisionFilter_ = sourceMaxPrecisionFilter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.numericFilterOption_ = numericFilterOption_; + } + } + + @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.SourceNumericFilter) { + return mergeFrom((com.google.cloud.clouddms.v1.SourceNumericFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SourceNumericFilter other) { + if (other == com.google.cloud.clouddms.v1.SourceNumericFilter.getDefaultInstance()) + return this; + if (other.getSourceMinScaleFilter() != 0) { + setSourceMinScaleFilter(other.getSourceMinScaleFilter()); + } + if (other.getSourceMaxScaleFilter() != 0) { + setSourceMaxScaleFilter(other.getSourceMaxScaleFilter()); + } + if (other.getSourceMinPrecisionFilter() != 0) { + setSourceMinPrecisionFilter(other.getSourceMinPrecisionFilter()); + } + if (other.getSourceMaxPrecisionFilter() != 0) { + setSourceMaxPrecisionFilter(other.getSourceMaxPrecisionFilter()); + } + if (other.numericFilterOption_ != 0) { + setNumericFilterOptionValue(other.getNumericFilterOptionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sourceMinScaleFilter_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sourceMaxScaleFilter_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + sourceMinPrecisionFilter_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + sourceMaxPrecisionFilter_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + numericFilterOption_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int sourceMinScaleFilter_; + /** + * + * + *
+     * Optional. The filter will match columns with scale greater than or equal to
+     * this number.
+     * 
+ * + * int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinScaleFilter. + */ + @java.lang.Override + public int getSourceMinScaleFilter() { + return sourceMinScaleFilter_; + } + /** + * + * + *
+     * Optional. The filter will match columns with scale greater than or equal to
+     * this number.
+     * 
+ * + * int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceMinScaleFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceMinScaleFilter(int value) { + + sourceMinScaleFilter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter will match columns with scale greater than or equal to
+     * this number.
+     * 
+ * + * int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceMinScaleFilter() { + bitField0_ = (bitField0_ & ~0x00000001); + sourceMinScaleFilter_ = 0; + onChanged(); + return this; + } + + private int sourceMaxScaleFilter_; + /** + * + * + *
+     * Optional. The filter will match columns with scale smaller than or equal to
+     * this number.
+     * 
+ * + * int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxScaleFilter. + */ + @java.lang.Override + public int getSourceMaxScaleFilter() { + return sourceMaxScaleFilter_; + } + /** + * + * + *
+     * Optional. The filter will match columns with scale smaller than or equal to
+     * this number.
+     * 
+ * + * int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceMaxScaleFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceMaxScaleFilter(int value) { + + sourceMaxScaleFilter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter will match columns with scale smaller than or equal to
+     * this number.
+     * 
+ * + * int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceMaxScaleFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + sourceMaxScaleFilter_ = 0; + onChanged(); + return this; + } + + private int sourceMinPrecisionFilter_; + /** + * + * + *
+     * Optional. The filter will match columns with precision greater than or
+     * equal to this number.
+     * 
+ * + * int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinPrecisionFilter. + */ + @java.lang.Override + public int getSourceMinPrecisionFilter() { + return sourceMinPrecisionFilter_; + } + /** + * + * + *
+     * Optional. The filter will match columns with precision greater than or
+     * equal to this number.
+     * 
+ * + * int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceMinPrecisionFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceMinPrecisionFilter(int value) { + + sourceMinPrecisionFilter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter will match columns with precision greater than or
+     * equal to this number.
+     * 
+ * + * int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceMinPrecisionFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + sourceMinPrecisionFilter_ = 0; + onChanged(); + return this; + } + + private int sourceMaxPrecisionFilter_; + /** + * + * + *
+     * Optional. The filter will match columns with precision smaller than or
+     * equal to this number.
+     * 
+ * + * int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxPrecisionFilter. + */ + @java.lang.Override + public int getSourceMaxPrecisionFilter() { + return sourceMaxPrecisionFilter_; + } + /** + * + * + *
+     * Optional. The filter will match columns with precision smaller than or
+     * equal to this number.
+     * 
+ * + * int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceMaxPrecisionFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceMaxPrecisionFilter(int value) { + + sourceMaxPrecisionFilter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter will match columns with precision smaller than or
+     * equal to this number.
+     * 
+ * + * int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceMaxPrecisionFilter() { + bitField0_ = (bitField0_ & ~0x00000008); + sourceMaxPrecisionFilter_ = 0; + onChanged(); + return this; + } + + private int numericFilterOption_ = 0; + /** + * + * + *
+     * Required. Enum to set the option defining the datatypes numeric filter has
+     * to be applied to
+     * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for numericFilterOption. + */ + @java.lang.Override + public int getNumericFilterOptionValue() { + return numericFilterOption_; + } + /** + * + * + *
+     * Required. Enum to set the option defining the datatypes numeric filter has
+     * to be applied to
+     * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for numericFilterOption to set. + * @return This builder for chaining. + */ + public Builder setNumericFilterOptionValue(int value) { + numericFilterOption_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Enum to set the option defining the datatypes numeric filter has
+     * to be applied to
+     * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The numericFilterOption. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.NumericFilterOption getNumericFilterOption() { + com.google.cloud.clouddms.v1.NumericFilterOption result = + com.google.cloud.clouddms.v1.NumericFilterOption.forNumber(numericFilterOption_); + return result == null + ? com.google.cloud.clouddms.v1.NumericFilterOption.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Enum to set the option defining the datatypes numeric filter has
+     * to be applied to
+     * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The numericFilterOption to set. + * @return This builder for chaining. + */ + public Builder setNumericFilterOption(com.google.cloud.clouddms.v1.NumericFilterOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + numericFilterOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Enum to set the option defining the datatypes numeric filter has
+     * to be applied to
+     * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearNumericFilterOption() { + bitField0_ = (bitField0_ & ~0x00000010); + numericFilterOption_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SourceNumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SourceNumericFilter) + private static final com.google.cloud.clouddms.v1.SourceNumericFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SourceNumericFilter(); + } + + public static com.google.cloud.clouddms.v1.SourceNumericFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceNumericFilter 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.SourceNumericFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceNumericFilterOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceNumericFilterOrBuilder.java new file mode 100644 index 000000000000..1c170b5f656a --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceNumericFilterOrBuilder.java @@ -0,0 +1,112 @@ +/* + * 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 SourceNumericFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SourceNumericFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The filter will match columns with scale greater than or equal to
+   * this number.
+   * 
+ * + * int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinScaleFilter. + */ + int getSourceMinScaleFilter(); + + /** + * + * + *
+   * Optional. The filter will match columns with scale smaller than or equal to
+   * this number.
+   * 
+ * + * int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxScaleFilter. + */ + int getSourceMaxScaleFilter(); + + /** + * + * + *
+   * Optional. The filter will match columns with precision greater than or
+   * equal to this number.
+   * 
+ * + * int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinPrecisionFilter. + */ + int getSourceMinPrecisionFilter(); + + /** + * + * + *
+   * Optional. The filter will match columns with precision smaller than or
+   * equal to this number.
+   * 
+ * + * int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxPrecisionFilter. + */ + int getSourceMaxPrecisionFilter(); + + /** + * + * + *
+   * Required. Enum to set the option defining the datatypes numeric filter has
+   * to be applied to
+   * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for numericFilterOption. + */ + int getNumericFilterOptionValue(); + /** + * + * + *
+   * Required. Enum to set the option defining the datatypes numeric filter has
+   * to be applied to
+   * 
+ * + * + * .google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The numericFilterOption. + */ + com.google.cloud.clouddms.v1.NumericFilterOption getNumericFilterOption(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceSqlChange.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceSqlChange.java new file mode 100644 index 000000000000..0e3f39f73870 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceSqlChange.java @@ -0,0 +1,633 @@ +/* + * 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; + +/** + * + * + *
+ * Options to configure rule type SourceSqlChange.
+ * The rule is used to alter the sql code for database entities.
+ *
+ * The rule filter field can refer to one entity.
+ *
+ * The rule scope can be: StoredProcedure, Function, Trigger, View
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SourceSqlChange} + */ +public final class SourceSqlChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SourceSqlChange) + SourceSqlChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceSqlChange.newBuilder() to construct. + private SourceSqlChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceSqlChange() { + sqlCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceSqlChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceSqlChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceSqlChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SourceSqlChange.class, + com.google.cloud.clouddms.v1.SourceSqlChange.Builder.class); + } + + public static final int SQL_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlCode_ = ""; + /** + * + * + *
+   * Required. Sql code for source (stored procedure, function, trigger or view)
+   * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sqlCode. + */ + @java.lang.Override + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Sql code for source (stored procedure, function, trigger or view)
+   * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlCode_); + } + 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.SourceSqlChange)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SourceSqlChange other = + (com.google.cloud.clouddms.v1.SourceSqlChange) obj; + + if (!getSqlCode().equals(other.getSqlCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSqlCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SourceSqlChange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceSqlChange 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.SourceSqlChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceSqlChange 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.SourceSqlChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceSqlChange 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.SourceSqlChange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SourceSqlChange 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.SourceSqlChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SourceSqlChange 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.SourceSqlChange 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.SourceSqlChange 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.SourceSqlChange 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; + } + /** + * + * + *
+   * Options to configure rule type SourceSqlChange.
+   * The rule is used to alter the sql code for database entities.
+   *
+   * The rule filter field can refer to one entity.
+   *
+   * The rule scope can be: StoredProcedure, Function, Trigger, View
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SourceSqlChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SourceSqlChange) + com.google.cloud.clouddms.v1.SourceSqlChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceSqlChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceSqlChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SourceSqlChange.class, + com.google.cloud.clouddms.v1.SourceSqlChange.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SourceSqlChange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sqlCode_ = ""; + 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_SourceSqlChange_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceSqlChange getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceSqlChange build() { + com.google.cloud.clouddms.v1.SourceSqlChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceSqlChange buildPartial() { + com.google.cloud.clouddms.v1.SourceSqlChange result = + new com.google.cloud.clouddms.v1.SourceSqlChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SourceSqlChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sqlCode_ = sqlCode_; + } + } + + @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.SourceSqlChange) { + return mergeFrom((com.google.cloud.clouddms.v1.SourceSqlChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SourceSqlChange other) { + if (other == com.google.cloud.clouddms.v1.SourceSqlChange.getDefaultInstance()) return this; + if (!other.getSqlCode().isEmpty()) { + sqlCode_ = other.sqlCode_; + 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: + { + sqlCode_ = 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 sqlCode_ = ""; + /** + * + * + *
+     * Required. Sql code for source (stored procedure, function, trigger or view)
+     * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sqlCode. + */ + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Sql code for source (stored procedure, function, trigger or view)
+     * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sqlCode. + */ + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Sql code for source (stored procedure, function, trigger or view)
+     * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Sql code for source (stored procedure, function, trigger or view)
+     * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSqlCode() { + sqlCode_ = getDefaultInstance().getSqlCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Sql code for source (stored procedure, function, trigger or view)
+     * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @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.SourceSqlChange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SourceSqlChange) + private static final com.google.cloud.clouddms.v1.SourceSqlChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SourceSqlChange(); + } + + public static com.google.cloud.clouddms.v1.SourceSqlChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceSqlChange 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.SourceSqlChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceSqlChangeOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceSqlChangeOrBuilder.java new file mode 100644 index 000000000000..bfb5ffbe0a66 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceSqlChangeOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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 SourceSqlChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SourceSqlChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Sql code for source (stored procedure, function, trigger or view)
+   * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sqlCode. + */ + java.lang.String getSqlCode(); + /** + * + * + *
+   * Required. Sql code for source (stored procedure, function, trigger or view)
+   * 
+ * + * string sql_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sqlCode. + */ + com.google.protobuf.ByteString getSqlCodeBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceTextFilter.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceTextFilter.java new file mode 100644 index 000000000000..d36f17fd7ada --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceTextFilter.java @@ -0,0 +1,634 @@ +/* + * 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; + +/** + * + * + *
+ * Filter for text-based data types like varchar.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SourceTextFilter} + */ +public final class SourceTextFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SourceTextFilter) + SourceTextFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceTextFilter.newBuilder() to construct. + private SourceTextFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceTextFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceTextFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceTextFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceTextFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SourceTextFilter.class, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder.class); + } + + public static final int SOURCE_MIN_LENGTH_FILTER_FIELD_NUMBER = 1; + private long sourceMinLengthFilter_ = 0L; + /** + * + * + *
+   * Optional. The filter will match columns with length greater than or equal
+   * to this number.
+   * 
+ * + * int64 source_min_length_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinLengthFilter. + */ + @java.lang.Override + public long getSourceMinLengthFilter() { + return sourceMinLengthFilter_; + } + + public static final int SOURCE_MAX_LENGTH_FILTER_FIELD_NUMBER = 2; + private long sourceMaxLengthFilter_ = 0L; + /** + * + * + *
+   * Optional. The filter will match columns with length smaller than or equal
+   * to this number.
+   * 
+ * + * int64 source_max_length_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxLengthFilter. + */ + @java.lang.Override + public long getSourceMaxLengthFilter() { + return sourceMaxLengthFilter_; + } + + 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 (sourceMinLengthFilter_ != 0L) { + output.writeInt64(1, sourceMinLengthFilter_); + } + if (sourceMaxLengthFilter_ != 0L) { + output.writeInt64(2, sourceMaxLengthFilter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceMinLengthFilter_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, sourceMinLengthFilter_); + } + if (sourceMaxLengthFilter_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sourceMaxLengthFilter_); + } + 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.SourceTextFilter)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SourceTextFilter other = + (com.google.cloud.clouddms.v1.SourceTextFilter) obj; + + if (getSourceMinLengthFilter() != other.getSourceMinLengthFilter()) return false; + if (getSourceMaxLengthFilter() != other.getSourceMaxLengthFilter()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_MIN_LENGTH_FILTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSourceMinLengthFilter()); + hash = (37 * hash) + SOURCE_MAX_LENGTH_FILTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSourceMaxLengthFilter()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SourceTextFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceTextFilter 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.SourceTextFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceTextFilter 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.SourceTextFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SourceTextFilter 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.SourceTextFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SourceTextFilter 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.SourceTextFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SourceTextFilter 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.SourceTextFilter 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.SourceTextFilter 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.SourceTextFilter 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; + } + /** + * + * + *
+   * Filter for text-based data types like varchar.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SourceTextFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SourceTextFilter) + com.google.cloud.clouddms.v1.SourceTextFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceTextFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SourceTextFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SourceTextFilter.class, + com.google.cloud.clouddms.v1.SourceTextFilter.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SourceTextFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceMinLengthFilter_ = 0L; + sourceMaxLengthFilter_ = 0L; + 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_SourceTextFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilter getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilter build() { + com.google.cloud.clouddms.v1.SourceTextFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SourceTextFilter buildPartial() { + com.google.cloud.clouddms.v1.SourceTextFilter result = + new com.google.cloud.clouddms.v1.SourceTextFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SourceTextFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceMinLengthFilter_ = sourceMinLengthFilter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceMaxLengthFilter_ = sourceMaxLengthFilter_; + } + } + + @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.SourceTextFilter) { + return mergeFrom((com.google.cloud.clouddms.v1.SourceTextFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SourceTextFilter other) { + if (other == com.google.cloud.clouddms.v1.SourceTextFilter.getDefaultInstance()) return this; + if (other.getSourceMinLengthFilter() != 0L) { + setSourceMinLengthFilter(other.getSourceMinLengthFilter()); + } + if (other.getSourceMaxLengthFilter() != 0L) { + setSourceMaxLengthFilter(other.getSourceMaxLengthFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sourceMinLengthFilter_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sourceMaxLengthFilter_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long sourceMinLengthFilter_; + /** + * + * + *
+     * Optional. The filter will match columns with length greater than or equal
+     * to this number.
+     * 
+ * + * int64 source_min_length_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinLengthFilter. + */ + @java.lang.Override + public long getSourceMinLengthFilter() { + return sourceMinLengthFilter_; + } + /** + * + * + *
+     * Optional. The filter will match columns with length greater than or equal
+     * to this number.
+     * 
+ * + * int64 source_min_length_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceMinLengthFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceMinLengthFilter(long value) { + + sourceMinLengthFilter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter will match columns with length greater than or equal
+     * to this number.
+     * 
+ * + * int64 source_min_length_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceMinLengthFilter() { + bitField0_ = (bitField0_ & ~0x00000001); + sourceMinLengthFilter_ = 0L; + onChanged(); + return this; + } + + private long sourceMaxLengthFilter_; + /** + * + * + *
+     * Optional. The filter will match columns with length smaller than or equal
+     * to this number.
+     * 
+ * + * int64 source_max_length_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxLengthFilter. + */ + @java.lang.Override + public long getSourceMaxLengthFilter() { + return sourceMaxLengthFilter_; + } + /** + * + * + *
+     * Optional. The filter will match columns with length smaller than or equal
+     * to this number.
+     * 
+ * + * int64 source_max_length_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceMaxLengthFilter to set. + * @return This builder for chaining. + */ + public Builder setSourceMaxLengthFilter(long value) { + + sourceMaxLengthFilter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter will match columns with length smaller than or equal
+     * to this number.
+     * 
+ * + * int64 source_max_length_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceMaxLengthFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + sourceMaxLengthFilter_ = 0L; + 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.SourceTextFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SourceTextFilter) + private static final com.google.cloud.clouddms.v1.SourceTextFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SourceTextFilter(); + } + + public static com.google.cloud.clouddms.v1.SourceTextFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceTextFilter 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.SourceTextFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceTextFilterOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceTextFilterOrBuilder.java new file mode 100644 index 000000000000..b30a360f2615 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SourceTextFilterOrBuilder.java @@ -0,0 +1,53 @@ +/* + * 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 SourceTextFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SourceTextFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The filter will match columns with length greater than or equal
+   * to this number.
+   * 
+ * + * int64 source_min_length_filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMinLengthFilter. + */ + long getSourceMinLengthFilter(); + + /** + * + * + *
+   * Optional. The filter will match columns with length smaller than or equal
+   * to this number.
+   * 
+ * + * int64 source_max_length_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceMaxLengthFilter. + */ + long getSourceMaxLengthFilter(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java index 27c5c37770a3..d5ff338643c8 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java @@ -113,6 +113,25 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int SKIP_VALIDATION_FIELD_NUMBER = 2; + private boolean skipValidation_ = false; + /** + * + * + *
+   * Optional. Start the migration job without running prior configuration
+   * verification. Defaults to `false`.
+   * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -130,6 +149,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (skipValidation_ != false) { + output.writeBool(2, skipValidation_); + } getUnknownFields().writeTo(output); } @@ -142,6 +164,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (skipValidation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, skipValidation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -159,6 +184,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.clouddms.v1.StartMigrationJobRequest) obj; if (!getName().equals(other.getName())) return false; + if (getSkipValidation() != other.getSkipValidation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,6 +198,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SKIP_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipValidation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -313,6 +341,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + skipValidation_ = false; return this; } @@ -352,6 +381,9 @@ private void buildPartial0(com.google.cloud.clouddms.v1.StartMigrationJobRequest if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.skipValidation_ = skipValidation_; + } } @java.lang.Override @@ -405,6 +437,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.StartMigrationJobRequest o bitField0_ |= 0x00000001; onChanged(); } + if (other.getSkipValidation() != false) { + setSkipValidation(other.getSkipValidation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -437,6 +472,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + skipValidation_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -562,6 +603,62 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean skipValidation_; + /** + * + * + *
+     * Optional. Start the migration job without running prior configuration
+     * verification. Defaults to `false`.
+     * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + /** + * + * + *
+     * Optional. Start the migration job without running prior configuration
+     * verification. Defaults to `false`.
+     * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipValidation to set. + * @return This builder for chaining. + */ + public Builder setSkipValidation(boolean value) { + + skipValidation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Start the migration job without running prior configuration
+     * verification. Defaults to `false`.
+     * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipValidation() { + bitField0_ = (bitField0_ & ~0x00000002); + skipValidation_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java index b2b606cca399..32aeed26b031 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java @@ -47,4 +47,18 @@ public interface StartMigrationJobRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Start the migration job without running prior configuration
+   * verification. Defaults to `false`.
+   * 
+ * + * bool skip_validation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + boolean getSkipValidation(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TcpProxyScript.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TcpProxyScript.java new file mode 100644 index 000000000000..9d9c67b1cfb0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TcpProxyScript.java @@ -0,0 +1,623 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for 'GenerateTcpProxyScript' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.TcpProxyScript} + */ +public final class TcpProxyScript extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.TcpProxyScript) + TcpProxyScriptOrBuilder { + private static final long serialVersionUID = 0L; + // Use TcpProxyScript.newBuilder() to construct. + private TcpProxyScript(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TcpProxyScript() { + script_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TcpProxyScript(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_TcpProxyScript_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_TcpProxyScript_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.TcpProxyScript.class, + com.google.cloud.clouddms.v1.TcpProxyScript.Builder.class); + } + + public static final int SCRIPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object script_ = ""; + /** + * + * + *
+   * The TCP Proxy configuration script.
+   * 
+ * + * string script = 1; + * + * @return The script. + */ + @java.lang.Override + public java.lang.String getScript() { + java.lang.Object ref = script_; + 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(); + script_ = s; + return s; + } + } + /** + * + * + *
+   * The TCP Proxy configuration script.
+   * 
+ * + * string script = 1; + * + * @return The bytes for script. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScriptBytes() { + java.lang.Object ref = script_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + script_ = 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(script_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, script_); + } + 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(script_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, script_); + } + 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.TcpProxyScript)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.TcpProxyScript other = + (com.google.cloud.clouddms.v1.TcpProxyScript) obj; + + if (!getScript().equals(other.getScript())) 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) + SCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getScript().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.TcpProxyScript parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TcpProxyScript 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.TcpProxyScript parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TcpProxyScript 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.TcpProxyScript parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TcpProxyScript 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.TcpProxyScript parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TcpProxyScript 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.TcpProxyScript parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TcpProxyScript 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.TcpProxyScript 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.TcpProxyScript 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.TcpProxyScript prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for 'GenerateTcpProxyScript' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.TcpProxyScript} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.TcpProxyScript) + com.google.cloud.clouddms.v1.TcpProxyScriptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_TcpProxyScript_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_TcpProxyScript_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.TcpProxyScript.class, + com.google.cloud.clouddms.v1.TcpProxyScript.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.TcpProxyScript.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + script_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_TcpProxyScript_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TcpProxyScript getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.TcpProxyScript.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TcpProxyScript build() { + com.google.cloud.clouddms.v1.TcpProxyScript result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TcpProxyScript buildPartial() { + com.google.cloud.clouddms.v1.TcpProxyScript result = + new com.google.cloud.clouddms.v1.TcpProxyScript(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.TcpProxyScript result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.script_ = script_; + } + } + + @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.TcpProxyScript) { + return mergeFrom((com.google.cloud.clouddms.v1.TcpProxyScript) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.TcpProxyScript other) { + if (other == com.google.cloud.clouddms.v1.TcpProxyScript.getDefaultInstance()) return this; + if (!other.getScript().isEmpty()) { + script_ = other.script_; + 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: + { + script_ = 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 script_ = ""; + /** + * + * + *
+     * The TCP Proxy configuration script.
+     * 
+ * + * string script = 1; + * + * @return The script. + */ + public java.lang.String getScript() { + java.lang.Object ref = script_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + script_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The TCP Proxy configuration script.
+     * 
+ * + * string script = 1; + * + * @return The bytes for script. + */ + public com.google.protobuf.ByteString getScriptBytes() { + java.lang.Object ref = script_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + script_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The TCP Proxy configuration script.
+     * 
+ * + * string script = 1; + * + * @param value The script to set. + * @return This builder for chaining. + */ + public Builder setScript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + script_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The TCP Proxy configuration script.
+     * 
+ * + * string script = 1; + * + * @return This builder for chaining. + */ + public Builder clearScript() { + script_ = getDefaultInstance().getScript(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The TCP Proxy configuration script.
+     * 
+ * + * string script = 1; + * + * @param value The bytes for script to set. + * @return This builder for chaining. + */ + public Builder setScriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + script_ = 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.TcpProxyScript) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.TcpProxyScript) + private static final com.google.cloud.clouddms.v1.TcpProxyScript DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.TcpProxyScript(); + } + + public static com.google.cloud.clouddms.v1.TcpProxyScript getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TcpProxyScript 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.TcpProxyScript getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TcpProxyScriptOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TcpProxyScriptOrBuilder.java new file mode 100644 index 000000000000..dfb5febfc5a0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TcpProxyScriptOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface TcpProxyScriptOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.TcpProxyScript) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The TCP Proxy configuration script.
+   * 
+ * + * string script = 1; + * + * @return The script. + */ + java.lang.String getScript(); + /** + * + * + *
+   * The TCP Proxy configuration script.
+   * 
+ * + * string script = 1; + * + * @return The bytes for script. + */ + com.google.protobuf.ByteString getScriptBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UDTEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UDTEntity.java new file mode 100644 index 000000000000..8792eb3b8d85 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UDTEntity.java @@ -0,0 +1,1069 @@ +/* + * 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; + +/** + * + * + *
+ * UDT's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.UDTEntity} + */ +public final class UDTEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.UDTEntity) + UDTEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use UDTEntity.newBuilder() to construct. + private UDTEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UDTEntity() { + udtSqlCode_ = ""; + udtBody_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UDTEntity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_UDTEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_UDTEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.UDTEntity.class, + com.google.cloud.clouddms.v1.UDTEntity.Builder.class); + } + + public static final int UDT_SQL_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object udtSqlCode_ = ""; + /** + * + * + *
+   * The SQL code which creates the udt.
+   * 
+ * + * string udt_sql_code = 1; + * + * @return The udtSqlCode. + */ + @java.lang.Override + public java.lang.String getUdtSqlCode() { + java.lang.Object ref = udtSqlCode_; + 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(); + udtSqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the udt.
+   * 
+ * + * string udt_sql_code = 1; + * + * @return The bytes for udtSqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUdtSqlCodeBytes() { + java.lang.Object ref = udtSqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + udtSqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UDT_BODY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object udtBody_ = ""; + /** + * + * + *
+   * The SQL code which creates the udt body.
+   * 
+ * + * string udt_body = 2; + * + * @return The udtBody. + */ + @java.lang.Override + public java.lang.String getUdtBody() { + java.lang.Object ref = udtBody_; + 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(); + udtBody_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the udt body.
+   * 
+ * + * string udt_body = 2; + * + * @return The bytes for udtBody. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUdtBodyBytes() { + java.lang.Object ref = udtBody_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + udtBody_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 3; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(udtSqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, udtSqlCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(udtBody_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, udtBody_); + } + if (customFeatures_ != null) { + output.writeMessage(3, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(udtSqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, udtSqlCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(udtBody_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, udtBody_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.UDTEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.UDTEntity other = (com.google.cloud.clouddms.v1.UDTEntity) obj; + + if (!getUdtSqlCode().equals(other.getUdtSqlCode())) return false; + if (!getUdtBody().equals(other.getUdtBody())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UDT_SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getUdtSqlCode().hashCode(); + hash = (37 * hash) + UDT_BODY_FIELD_NUMBER; + hash = (53 * hash) + getUdtBody().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.UDTEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.UDTEntity 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.UDTEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.UDTEntity 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.UDTEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.UDTEntity 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.UDTEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.UDTEntity 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.UDTEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.UDTEntity 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.UDTEntity 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.UDTEntity 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.UDTEntity 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; + } + /** + * + * + *
+   * UDT's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.UDTEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.UDTEntity) + com.google.cloud.clouddms.v1.UDTEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_UDTEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_UDTEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.UDTEntity.class, + com.google.cloud.clouddms.v1.UDTEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.UDTEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + udtSqlCode_ = ""; + udtBody_ = ""; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_UDTEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.UDTEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.UDTEntity build() { + com.google.cloud.clouddms.v1.UDTEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.UDTEntity buildPartial() { + com.google.cloud.clouddms.v1.UDTEntity result = + new com.google.cloud.clouddms.v1.UDTEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.UDTEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.udtSqlCode_ = udtSqlCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.udtBody_ = udtBody_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.UDTEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.UDTEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.UDTEntity other) { + if (other == com.google.cloud.clouddms.v1.UDTEntity.getDefaultInstance()) return this; + if (!other.getUdtSqlCode().isEmpty()) { + udtSqlCode_ = other.udtSqlCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUdtBody().isEmpty()) { + udtBody_ = other.udtBody_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + udtSqlCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + udtBody_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object udtSqlCode_ = ""; + /** + * + * + *
+     * The SQL code which creates the udt.
+     * 
+ * + * string udt_sql_code = 1; + * + * @return The udtSqlCode. + */ + public java.lang.String getUdtSqlCode() { + java.lang.Object ref = udtSqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + udtSqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the udt.
+     * 
+ * + * string udt_sql_code = 1; + * + * @return The bytes for udtSqlCode. + */ + public com.google.protobuf.ByteString getUdtSqlCodeBytes() { + java.lang.Object ref = udtSqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + udtSqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the udt.
+     * 
+ * + * string udt_sql_code = 1; + * + * @param value The udtSqlCode to set. + * @return This builder for chaining. + */ + public Builder setUdtSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + udtSqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the udt.
+     * 
+ * + * string udt_sql_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearUdtSqlCode() { + udtSqlCode_ = getDefaultInstance().getUdtSqlCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the udt.
+     * 
+ * + * string udt_sql_code = 1; + * + * @param value The bytes for udtSqlCode to set. + * @return This builder for chaining. + */ + public Builder setUdtSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + udtSqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object udtBody_ = ""; + /** + * + * + *
+     * The SQL code which creates the udt body.
+     * 
+ * + * string udt_body = 2; + * + * @return The udtBody. + */ + public java.lang.String getUdtBody() { + java.lang.Object ref = udtBody_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + udtBody_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the udt body.
+     * 
+ * + * string udt_body = 2; + * + * @return The bytes for udtBody. + */ + public com.google.protobuf.ByteString getUdtBodyBytes() { + java.lang.Object ref = udtBody_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + udtBody_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the udt body.
+     * 
+ * + * string udt_body = 2; + * + * @param value The udtBody to set. + * @return This builder for chaining. + */ + public Builder setUdtBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + udtBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the udt body.
+     * 
+ * + * string udt_body = 2; + * + * @return This builder for chaining. + */ + public Builder clearUdtBody() { + udtBody_ = getDefaultInstance().getUdtBody(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the udt body.
+     * 
+ * + * string udt_body = 2; + * + * @param value The bytes for udtBody to set. + * @return This builder for chaining. + */ + public Builder setUdtBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + udtBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000004); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.UDTEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.UDTEntity) + private static final com.google.cloud.clouddms.v1.UDTEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.UDTEntity(); + } + + public static com.google.cloud.clouddms.v1.UDTEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UDTEntity 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.UDTEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UDTEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UDTEntityOrBuilder.java new file mode 100644 index 000000000000..7fb852128ac2 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UDTEntityOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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 UDTEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.UDTEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SQL code which creates the udt.
+   * 
+ * + * string udt_sql_code = 1; + * + * @return The udtSqlCode. + */ + java.lang.String getUdtSqlCode(); + /** + * + * + *
+   * The SQL code which creates the udt.
+   * 
+ * + * string udt_sql_code = 1; + * + * @return The bytes for udtSqlCode. + */ + com.google.protobuf.ByteString getUdtSqlCodeBytes(); + + /** + * + * + *
+   * The SQL code which creates the udt body.
+   * 
+ * + * string udt_body = 2; + * + * @return The udtBody. + */ + java.lang.String getUdtBody(); + /** + * + * + *
+   * The SQL code which creates the udt body.
+   * 
+ * + * string udt_body = 2; + * + * @return The bytes for udtBody. + */ + com.google.protobuf.ByteString getUdtBodyBytes(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueComparison.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueComparison.java new file mode 100644 index 000000000000..d6b2158c28bf --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueComparison.java @@ -0,0 +1,223 @@ +/* + * 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; + +/** + * + * + *
+ * Enum used by IntComparisonFilter and DoubleComparisonFilter to indicate the
+ * relation between source value and compare value.
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.ValueComparison} + */ +public enum ValueComparison implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Value comparison unspecified.
+   * 
+ * + * VALUE_COMPARISON_UNSPECIFIED = 0; + */ + VALUE_COMPARISON_UNSPECIFIED(0), + /** + * + * + *
+   * Value is smaller than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_SMALLER_THAN = 1; + */ + VALUE_COMPARISON_IF_VALUE_SMALLER_THAN(1), + /** + * + * + *
+   * Value is smaller or equal than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN = 2; + */ + VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN(2), + /** + * + * + *
+   * Value is larger than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_LARGER_THAN = 3; + */ + VALUE_COMPARISON_IF_VALUE_LARGER_THAN(3), + /** + * + * + *
+   * Value is larger or equal than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN = 4; + */ + VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Value comparison unspecified.
+   * 
+ * + * VALUE_COMPARISON_UNSPECIFIED = 0; + */ + public static final int VALUE_COMPARISON_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Value is smaller than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_SMALLER_THAN = 1; + */ + public static final int VALUE_COMPARISON_IF_VALUE_SMALLER_THAN_VALUE = 1; + /** + * + * + *
+   * Value is smaller or equal than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN = 2; + */ + public static final int VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN_VALUE = 2; + /** + * + * + *
+   * Value is larger than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_LARGER_THAN = 3; + */ + public static final int VALUE_COMPARISON_IF_VALUE_LARGER_THAN_VALUE = 3; + /** + * + * + *
+   * Value is larger or equal than the Compare value.
+   * 
+ * + * VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN = 4; + */ + public static final int VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueComparison valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ValueComparison forNumber(int value) { + switch (value) { + case 0: + return VALUE_COMPARISON_UNSPECIFIED; + case 1: + return VALUE_COMPARISON_IF_VALUE_SMALLER_THAN; + case 2: + return VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN; + case 3: + return VALUE_COMPARISON_IF_VALUE_LARGER_THAN; + case 4: + return VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ValueComparison findValueByNumber(int number) { + return ValueComparison.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() + .getEnumTypes() + .get(5); + } + + private static final ValueComparison[] VALUES = values(); + + public static ValueComparison valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ValueComparison(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.ValueComparison) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueListFilter.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueListFilter.java new file mode 100644 index 000000000000..2455083e6568 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueListFilter.java @@ -0,0 +1,988 @@ +/* + * 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; + +/** + * + * + *
+ * A list of values to filter by in ConditionalColumnSetValue
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ValueListFilter} + */ +public final class ValueListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ValueListFilter) + ValueListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValueListFilter.newBuilder() to construct. + private ValueListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValueListFilter() { + valuePresentList_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ValueListFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ValueListFilter.class, + com.google.cloud.clouddms.v1.ValueListFilter.Builder.class); + } + + public static final int VALUE_PRESENT_LIST_FIELD_NUMBER = 1; + private int valuePresentList_ = 0; + /** + * + * + *
+   * Required. Indicates whether the filter matches rows with values that are
+   * present in the list or those with values not present in it.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valuePresentList. + */ + @java.lang.Override + public int getValuePresentListValue() { + return valuePresentList_; + } + /** + * + * + *
+   * Required. Indicates whether the filter matches rows with values that are
+   * present in the list or those with values not present in it.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valuePresentList. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValuePresentInList getValuePresentList() { + com.google.cloud.clouddms.v1.ValuePresentInList result = + com.google.cloud.clouddms.v1.ValuePresentInList.forNumber(valuePresentList_); + return result == null ? com.google.cloud.clouddms.v1.ValuePresentInList.UNRECOGNIZED : result; + } + + public static final int VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int IGNORE_CASE_FIELD_NUMBER = 3; + private boolean ignoreCase_ = false; + /** + * + * + *
+   * Required. Whether to ignore case when filtering by values. Defaults to
+   * false
+   * 
+ * + * bool ignore_case = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ignoreCase. + */ + @java.lang.Override + public boolean getIgnoreCase() { + return ignoreCase_; + } + + 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 (valuePresentList_ + != com.google.cloud.clouddms.v1.ValuePresentInList.VALUE_PRESENT_IN_LIST_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, valuePresentList_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, values_.getRaw(i)); + } + if (ignoreCase_ != false) { + output.writeBool(3, ignoreCase_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valuePresentList_ + != com.google.cloud.clouddms.v1.ValuePresentInList.VALUE_PRESENT_IN_LIST_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, valuePresentList_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (ignoreCase_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreCase_); + } + 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.ValueListFilter)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ValueListFilter other = + (com.google.cloud.clouddms.v1.ValueListFilter) obj; + + if (valuePresentList_ != other.valuePresentList_) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (getIgnoreCase() != other.getIgnoreCase()) 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_PRESENT_LIST_FIELD_NUMBER; + hash = (53 * hash) + valuePresentList_; + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ValueListFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ValueListFilter 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.ValueListFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ValueListFilter 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.ValueListFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ValueListFilter 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.ValueListFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ValueListFilter 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.ValueListFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ValueListFilter 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.ValueListFilter 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.ValueListFilter 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.ValueListFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of values to filter by in ConditionalColumnSetValue
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ValueListFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ValueListFilter) + com.google.cloud.clouddms.v1.ValueListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ValueListFilter.class, + com.google.cloud.clouddms.v1.ValueListFilter.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ValueListFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + valuePresentList_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ignoreCase_ = false; + 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_ValueListFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueListFilter getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueListFilter build() { + com.google.cloud.clouddms.v1.ValueListFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueListFilter buildPartial() { + com.google.cloud.clouddms.v1.ValueListFilter result = + new com.google.cloud.clouddms.v1.ValueListFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ValueListFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.valuePresentList_ = valuePresentList_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ignoreCase_ = ignoreCase_; + } + } + + @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.ValueListFilter) { + return mergeFrom((com.google.cloud.clouddms.v1.ValueListFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ValueListFilter other) { + if (other == com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance()) return this; + if (other.valuePresentList_ != 0) { + setValuePresentListValue(other.getValuePresentListValue()); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000002; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getIgnoreCase() != false) { + setIgnoreCase(other.getIgnoreCase()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + valuePresentList_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 18 + case 24: + { + ignoreCase_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int valuePresentList_ = 0; + /** + * + * + *
+     * Required. Indicates whether the filter matches rows with values that are
+     * present in the list or those with values not present in it.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valuePresentList. + */ + @java.lang.Override + public int getValuePresentListValue() { + return valuePresentList_; + } + /** + * + * + *
+     * Required. Indicates whether the filter matches rows with values that are
+     * present in the list or those with values not present in it.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for valuePresentList to set. + * @return This builder for chaining. + */ + public Builder setValuePresentListValue(int value) { + valuePresentList_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Indicates whether the filter matches rows with values that are
+     * present in the list or those with values not present in it.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valuePresentList. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValuePresentInList getValuePresentList() { + com.google.cloud.clouddms.v1.ValuePresentInList result = + com.google.cloud.clouddms.v1.ValuePresentInList.forNumber(valuePresentList_); + return result == null ? com.google.cloud.clouddms.v1.ValuePresentInList.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. Indicates whether the filter matches rows with values that are
+     * present in the list or those with values not present in it.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The valuePresentList to set. + * @return This builder for chaining. + */ + public Builder setValuePresentList(com.google.cloud.clouddms.v1.ValuePresentInList value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + valuePresentList_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Indicates whether the filter matches rows with values that are
+     * present in the list or those with values not present in it.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearValuePresentList() { + bitField0_ = (bitField0_ & ~0x00000001); + valuePresentList_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list to be used to filter by
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean ignoreCase_; + /** + * + * + *
+     * Required. Whether to ignore case when filtering by values. Defaults to
+     * false
+     * 
+ * + * bool ignore_case = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ignoreCase. + */ + @java.lang.Override + public boolean getIgnoreCase() { + return ignoreCase_; + } + /** + * + * + *
+     * Required. Whether to ignore case when filtering by values. Defaults to
+     * false
+     * 
+ * + * bool ignore_case = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ignoreCase to set. + * @return This builder for chaining. + */ + public Builder setIgnoreCase(boolean value) { + + ignoreCase_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Whether to ignore case when filtering by values. Defaults to
+     * false
+     * 
+ * + * bool ignore_case = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreCase() { + bitField0_ = (bitField0_ & ~0x00000004); + ignoreCase_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ValueListFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ValueListFilter) + private static final com.google.cloud.clouddms.v1.ValueListFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ValueListFilter(); + } + + public static com.google.cloud.clouddms.v1.ValueListFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueListFilter 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.ValueListFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueListFilterOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueListFilterOrBuilder.java new file mode 100644 index 000000000000..d93d45c4e0ce --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueListFilterOrBuilder.java @@ -0,0 +1,121 @@ +/* + * 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 ValueListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ValueListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Indicates whether the filter matches rows with values that are
+   * present in the list or those with values not present in it.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for valuePresentList. + */ + int getValuePresentListValue(); + /** + * + * + *
+   * Required. Indicates whether the filter matches rows with values that are
+   * present in the list or those with values not present in it.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValuePresentInList value_present_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The valuePresentList. + */ + com.google.cloud.clouddms.v1.ValuePresentInList getValuePresentList(); + + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+   * Required. The list to be used to filter by
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+   * Required. Whether to ignore case when filtering by values. Defaults to
+   * false
+   * 
+ * + * bool ignore_case = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ignoreCase. + */ + boolean getIgnoreCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValuePresentInList.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValuePresentInList.java new file mode 100644 index 000000000000..b3303a8c4d4a --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValuePresentInList.java @@ -0,0 +1,181 @@ +/* + * 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; + +/** + * + * + *
+ * Enum used by ValueListFilter to indicate whether the source value is in the
+ * supplied list
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.ValuePresentInList} + */ +public enum ValuePresentInList implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Value present in list unspecified
+   * 
+ * + * VALUE_PRESENT_IN_LIST_UNSPECIFIED = 0; + */ + VALUE_PRESENT_IN_LIST_UNSPECIFIED(0), + /** + * + * + *
+   * If the source value is in the supplied list at value_list
+   * 
+ * + * VALUE_PRESENT_IN_LIST_IF_VALUE_LIST = 1; + */ + VALUE_PRESENT_IN_LIST_IF_VALUE_LIST(1), + /** + * + * + *
+   * If the source value is not in the supplied list at value_list
+   * 
+ * + * VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST = 2; + */ + VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Value present in list unspecified
+   * 
+ * + * VALUE_PRESENT_IN_LIST_UNSPECIFIED = 0; + */ + public static final int VALUE_PRESENT_IN_LIST_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * If the source value is in the supplied list at value_list
+   * 
+ * + * VALUE_PRESENT_IN_LIST_IF_VALUE_LIST = 1; + */ + public static final int VALUE_PRESENT_IN_LIST_IF_VALUE_LIST_VALUE = 1; + /** + * + * + *
+   * If the source value is not in the supplied list at value_list
+   * 
+ * + * VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST = 2; + */ + public static final int VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValuePresentInList valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ValuePresentInList forNumber(int value) { + switch (value) { + case 0: + return VALUE_PRESENT_IN_LIST_UNSPECIFIED; + case 1: + return VALUE_PRESENT_IN_LIST_IF_VALUE_LIST; + case 2: + return VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ValuePresentInList findValueByNumber(int number) { + return ValuePresentInList.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ValuePresentInList[] VALUES = values(); + + public static ValuePresentInList valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ValuePresentInList(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.ValuePresentInList) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueTransformation.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueTransformation.java new file mode 100644 index 000000000000..3d47a3cca4d9 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueTransformation.java @@ -0,0 +1,3797 @@ +/* + * 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; + +/** + * + * + *
+ * Description of data transformation during migration as part of the
+ * ConditionalColumnSetValue.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ValueTransformation} + */ +public final class ValueTransformation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ValueTransformation) + ValueTransformationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValueTransformation.newBuilder() to construct. + private ValueTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValueTransformation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ValueTransformation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueTransformation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueTransformation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ValueTransformation.class, + com.google.cloud.clouddms.v1.ValueTransformation.Builder.class); + } + + private int filterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object filter_; + + public enum FilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IS_NULL(100), + VALUE_LIST(101), + INT_COMPARISON(102), + DOUBLE_COMPARISON(103), + FILTER_NOT_SET(0); + private final int value; + + private FilterCase(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 FilterCase valueOf(int value) { + return forNumber(value); + } + + public static FilterCase forNumber(int value) { + switch (value) { + case 100: + return IS_NULL; + case 101: + return VALUE_LIST; + case 102: + return INT_COMPARISON; + case 103: + return DOUBLE_COMPARISON; + case 0: + return FILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ASSIGN_NULL(200), + ASSIGN_SPECIFIC_VALUE(201), + ASSIGN_MIN_VALUE(202), + ASSIGN_MAX_VALUE(203), + ROUND_SCALE(204), + APPLY_HASH(205), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(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 ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 200: + return ASSIGN_NULL; + case 201: + return ASSIGN_SPECIFIC_VALUE; + case 202: + return ASSIGN_MIN_VALUE; + case 203: + return ASSIGN_MAX_VALUE; + case 204: + return ROUND_SCALE; + case 205: + return APPLY_HASH; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int IS_NULL_FIELD_NUMBER = 100; + /** + * + * + *
+   * Optional. Value is null
+   * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the isNull field is set. + */ + @java.lang.Override + public boolean hasIsNull() { + return filterCase_ == 100; + } + /** + * + * + *
+   * Optional. Value is null
+   * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isNull. + */ + @java.lang.Override + public com.google.protobuf.Empty getIsNull() { + if (filterCase_ == 100) { + return (com.google.protobuf.Empty) filter_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Value is null
+   * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getIsNullOrBuilder() { + if (filterCase_ == 100) { + return (com.google.protobuf.Empty) filter_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + + public static final int VALUE_LIST_FIELD_NUMBER = 101; + /** + * + * + *
+   * Optional. Value is found in the specified list.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the valueList field is set. + */ + @java.lang.Override + public boolean hasValueList() { + return filterCase_ == 101; + } + /** + * + * + *
+   * Optional. Value is found in the specified list.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The valueList. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueListFilter getValueList() { + if (filterCase_ == 101) { + return (com.google.cloud.clouddms.v1.ValueListFilter) filter_; + } + return com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Value is found in the specified list.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueListFilterOrBuilder getValueListOrBuilder() { + if (filterCase_ == 101) { + return (com.google.cloud.clouddms.v1.ValueListFilter) filter_; + } + return com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance(); + } + + public static final int INT_COMPARISON_FIELD_NUMBER = 102; + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type integer.
+   * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the intComparison field is set. + */ + @java.lang.Override + public boolean hasIntComparison() { + return filterCase_ == 102; + } + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type integer.
+   * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.IntComparisonFilter getIntComparison() { + if (filterCase_ == 102) { + return (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type integer.
+   * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.IntComparisonFilterOrBuilder getIntComparisonOrBuilder() { + if (filterCase_ == 102) { + return (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance(); + } + + public static final int DOUBLE_COMPARISON_FIELD_NUMBER = 103; + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type double.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the doubleComparison field is set. + */ + @java.lang.Override + public boolean hasDoubleComparison() { + return filterCase_ == 103; + } + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type double.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The doubleComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DoubleComparisonFilter getDoubleComparison() { + if (filterCase_ == 103) { + return (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type double.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DoubleComparisonFilterOrBuilder + getDoubleComparisonOrBuilder() { + if (filterCase_ == 103) { + return (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance(); + } + + public static final int ASSIGN_NULL_FIELD_NUMBER = 200; + /** + * + * + *
+   * Optional. Set to null
+   * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignNull field is set. + */ + @java.lang.Override + public boolean hasAssignNull() { + return actionCase_ == 200; + } + /** + * + * + *
+   * Optional. Set to null
+   * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignNull. + */ + @java.lang.Override + public com.google.protobuf.Empty getAssignNull() { + if (actionCase_ == 200) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Set to null
+   * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getAssignNullOrBuilder() { + if (actionCase_ == 200) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + + public static final int ASSIGN_SPECIFIC_VALUE_FIELD_NUMBER = 201; + /** + * + * + *
+   * Optional. Set to a specific value (value is converted to fit the target
+   * data type)
+   * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignSpecificValue field is set. + */ + @java.lang.Override + public boolean hasAssignSpecificValue() { + return actionCase_ == 201; + } + /** + * + * + *
+   * Optional. Set to a specific value (value is converted to fit the target
+   * data type)
+   * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignSpecificValue. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AssignSpecificValue getAssignSpecificValue() { + if (actionCase_ == 201) { + return (com.google.cloud.clouddms.v1.AssignSpecificValue) action_; + } + return com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Set to a specific value (value is converted to fit the target
+   * data type)
+   * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AssignSpecificValueOrBuilder + getAssignSpecificValueOrBuilder() { + if (actionCase_ == 201) { + return (com.google.cloud.clouddms.v1.AssignSpecificValue) action_; + } + return com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance(); + } + + public static final int ASSIGN_MIN_VALUE_FIELD_NUMBER = 202; + /** + * + * + *
+   * Optional. Set to min_value - if integer or numeric, will use
+   * int.minvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignMinValue field is set. + */ + @java.lang.Override + public boolean hasAssignMinValue() { + return actionCase_ == 202; + } + /** + * + * + *
+   * Optional. Set to min_value - if integer or numeric, will use
+   * int.minvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignMinValue. + */ + @java.lang.Override + public com.google.protobuf.Empty getAssignMinValue() { + if (actionCase_ == 202) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Set to min_value - if integer or numeric, will use
+   * int.minvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getAssignMinValueOrBuilder() { + if (actionCase_ == 202) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + + public static final int ASSIGN_MAX_VALUE_FIELD_NUMBER = 203; + /** + * + * + *
+   * Optional. Set to max_value - if integer or numeric, will use
+   * int.maxvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignMaxValue field is set. + */ + @java.lang.Override + public boolean hasAssignMaxValue() { + return actionCase_ == 203; + } + /** + * + * + *
+   * Optional. Set to max_value - if integer or numeric, will use
+   * int.maxvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignMaxValue. + */ + @java.lang.Override + public com.google.protobuf.Empty getAssignMaxValue() { + if (actionCase_ == 203) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Set to max_value - if integer or numeric, will use
+   * int.maxvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getAssignMaxValueOrBuilder() { + if (actionCase_ == 203) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + + public static final int ROUND_SCALE_FIELD_NUMBER = 204; + /** + * + * + *
+   * Optional. Allows the data to change scale
+   * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the roundScale field is set. + */ + @java.lang.Override + public boolean hasRoundScale() { + return actionCase_ == 204; + } + /** + * + * + *
+   * Optional. Allows the data to change scale
+   * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The roundScale. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.RoundToScale getRoundScale() { + if (actionCase_ == 204) { + return (com.google.cloud.clouddms.v1.RoundToScale) action_; + } + return com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Allows the data to change scale
+   * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.RoundToScaleOrBuilder getRoundScaleOrBuilder() { + if (actionCase_ == 204) { + return (com.google.cloud.clouddms.v1.RoundToScale) action_; + } + return com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance(); + } + + public static final int APPLY_HASH_FIELD_NUMBER = 205; + /** + * + * + *
+   * Optional. Applies a hash function on the data
+   * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applyHash field is set. + */ + @java.lang.Override + public boolean hasApplyHash() { + return actionCase_ == 205; + } + /** + * + * + *
+   * Optional. Applies a hash function on the data
+   * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applyHash. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyHash getApplyHash() { + if (actionCase_ == 205) { + return (com.google.cloud.clouddms.v1.ApplyHash) action_; + } + return com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Applies a hash function on the data
+   * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyHashOrBuilder getApplyHashOrBuilder() { + if (actionCase_ == 205) { + return (com.google.cloud.clouddms.v1.ApplyHash) action_; + } + return com.google.cloud.clouddms.v1.ApplyHash.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 (filterCase_ == 100) { + output.writeMessage(100, (com.google.protobuf.Empty) filter_); + } + if (filterCase_ == 101) { + output.writeMessage(101, (com.google.cloud.clouddms.v1.ValueListFilter) filter_); + } + if (filterCase_ == 102) { + output.writeMessage(102, (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_); + } + if (filterCase_ == 103) { + output.writeMessage(103, (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_); + } + if (actionCase_ == 200) { + output.writeMessage(200, (com.google.protobuf.Empty) action_); + } + if (actionCase_ == 201) { + output.writeMessage(201, (com.google.cloud.clouddms.v1.AssignSpecificValue) action_); + } + if (actionCase_ == 202) { + output.writeMessage(202, (com.google.protobuf.Empty) action_); + } + if (actionCase_ == 203) { + output.writeMessage(203, (com.google.protobuf.Empty) action_); + } + if (actionCase_ == 204) { + output.writeMessage(204, (com.google.cloud.clouddms.v1.RoundToScale) action_); + } + if (actionCase_ == 205) { + output.writeMessage(205, (com.google.cloud.clouddms.v1.ApplyHash) action_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.protobuf.Empty) filter_); + } + if (filterCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.ValueListFilter) filter_); + } + if (filterCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_); + } + if (filterCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_); + } + if (actionCase_ == 200) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, (com.google.protobuf.Empty) action_); + } + if (actionCase_ == 201) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, (com.google.cloud.clouddms.v1.AssignSpecificValue) action_); + } + if (actionCase_ == 202) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 202, (com.google.protobuf.Empty) action_); + } + if (actionCase_ == 203) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 203, (com.google.protobuf.Empty) action_); + } + if (actionCase_ == 204) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 204, (com.google.cloud.clouddms.v1.RoundToScale) action_); + } + if (actionCase_ == 205) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 205, (com.google.cloud.clouddms.v1.ApplyHash) action_); + } + 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.ValueTransformation)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ValueTransformation other = + (com.google.cloud.clouddms.v1.ValueTransformation) obj; + + if (!getFilterCase().equals(other.getFilterCase())) return false; + switch (filterCase_) { + case 100: + if (!getIsNull().equals(other.getIsNull())) return false; + break; + case 101: + if (!getValueList().equals(other.getValueList())) return false; + break; + case 102: + if (!getIntComparison().equals(other.getIntComparison())) return false; + break; + case 103: + if (!getDoubleComparison().equals(other.getDoubleComparison())) return false; + break; + case 0: + default: + } + if (!getActionCase().equals(other.getActionCase())) return false; + switch (actionCase_) { + case 200: + if (!getAssignNull().equals(other.getAssignNull())) return false; + break; + case 201: + if (!getAssignSpecificValue().equals(other.getAssignSpecificValue())) return false; + break; + case 202: + if (!getAssignMinValue().equals(other.getAssignMinValue())) return false; + break; + case 203: + if (!getAssignMaxValue().equals(other.getAssignMaxValue())) return false; + break; + case 204: + if (!getRoundScale().equals(other.getRoundScale())) return false; + break; + case 205: + if (!getApplyHash().equals(other.getApplyHash())) 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 (filterCase_) { + case 100: + hash = (37 * hash) + IS_NULL_FIELD_NUMBER; + hash = (53 * hash) + getIsNull().hashCode(); + break; + case 101: + hash = (37 * hash) + VALUE_LIST_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + break; + case 102: + hash = (37 * hash) + INT_COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + getIntComparison().hashCode(); + break; + case 103: + hash = (37 * hash) + DOUBLE_COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + getDoubleComparison().hashCode(); + break; + case 0: + default: + } + switch (actionCase_) { + case 200: + hash = (37 * hash) + ASSIGN_NULL_FIELD_NUMBER; + hash = (53 * hash) + getAssignNull().hashCode(); + break; + case 201: + hash = (37 * hash) + ASSIGN_SPECIFIC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getAssignSpecificValue().hashCode(); + break; + case 202: + hash = (37 * hash) + ASSIGN_MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getAssignMinValue().hashCode(); + break; + case 203: + hash = (37 * hash) + ASSIGN_MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getAssignMaxValue().hashCode(); + break; + case 204: + hash = (37 * hash) + ROUND_SCALE_FIELD_NUMBER; + hash = (53 * hash) + getRoundScale().hashCode(); + break; + case 205: + hash = (37 * hash) + APPLY_HASH_FIELD_NUMBER; + hash = (53 * hash) + getApplyHash().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ValueTransformation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ValueTransformation 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.ValueTransformation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ValueTransformation 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.ValueTransformation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ValueTransformation 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.ValueTransformation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ValueTransformation 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.ValueTransformation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ValueTransformation 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.ValueTransformation 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.ValueTransformation 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.ValueTransformation 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; + } + /** + * + * + *
+   * Description of data transformation during migration as part of the
+   * ConditionalColumnSetValue.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ValueTransformation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ValueTransformation) + com.google.cloud.clouddms.v1.ValueTransformationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueTransformation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ValueTransformation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ValueTransformation.class, + com.google.cloud.clouddms.v1.ValueTransformation.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ValueTransformation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (isNullBuilder_ != null) { + isNullBuilder_.clear(); + } + if (valueListBuilder_ != null) { + valueListBuilder_.clear(); + } + if (intComparisonBuilder_ != null) { + intComparisonBuilder_.clear(); + } + if (doubleComparisonBuilder_ != null) { + doubleComparisonBuilder_.clear(); + } + if (assignNullBuilder_ != null) { + assignNullBuilder_.clear(); + } + if (assignSpecificValueBuilder_ != null) { + assignSpecificValueBuilder_.clear(); + } + if (assignMinValueBuilder_ != null) { + assignMinValueBuilder_.clear(); + } + if (assignMaxValueBuilder_ != null) { + assignMaxValueBuilder_.clear(); + } + if (roundScaleBuilder_ != null) { + roundScaleBuilder_.clear(); + } + if (applyHashBuilder_ != null) { + applyHashBuilder_.clear(); + } + filterCase_ = 0; + filter_ = null; + actionCase_ = 0; + action_ = 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_ValueTransformation_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueTransformation getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ValueTransformation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueTransformation build() { + com.google.cloud.clouddms.v1.ValueTransformation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueTransformation buildPartial() { + com.google.cloud.clouddms.v1.ValueTransformation result = + new com.google.cloud.clouddms.v1.ValueTransformation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ValueTransformation result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.ValueTransformation result) { + result.filterCase_ = filterCase_; + result.filter_ = this.filter_; + if (filterCase_ == 100 && isNullBuilder_ != null) { + result.filter_ = isNullBuilder_.build(); + } + if (filterCase_ == 101 && valueListBuilder_ != null) { + result.filter_ = valueListBuilder_.build(); + } + if (filterCase_ == 102 && intComparisonBuilder_ != null) { + result.filter_ = intComparisonBuilder_.build(); + } + if (filterCase_ == 103 && doubleComparisonBuilder_ != null) { + result.filter_ = doubleComparisonBuilder_.build(); + } + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 200 && assignNullBuilder_ != null) { + result.action_ = assignNullBuilder_.build(); + } + if (actionCase_ == 201 && assignSpecificValueBuilder_ != null) { + result.action_ = assignSpecificValueBuilder_.build(); + } + if (actionCase_ == 202 && assignMinValueBuilder_ != null) { + result.action_ = assignMinValueBuilder_.build(); + } + if (actionCase_ == 203 && assignMaxValueBuilder_ != null) { + result.action_ = assignMaxValueBuilder_.build(); + } + if (actionCase_ == 204 && roundScaleBuilder_ != null) { + result.action_ = roundScaleBuilder_.build(); + } + if (actionCase_ == 205 && applyHashBuilder_ != null) { + result.action_ = applyHashBuilder_.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.ValueTransformation) { + return mergeFrom((com.google.cloud.clouddms.v1.ValueTransformation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ValueTransformation other) { + if (other == com.google.cloud.clouddms.v1.ValueTransformation.getDefaultInstance()) + return this; + switch (other.getFilterCase()) { + case IS_NULL: + { + mergeIsNull(other.getIsNull()); + break; + } + case VALUE_LIST: + { + mergeValueList(other.getValueList()); + break; + } + case INT_COMPARISON: + { + mergeIntComparison(other.getIntComparison()); + break; + } + case DOUBLE_COMPARISON: + { + mergeDoubleComparison(other.getDoubleComparison()); + break; + } + case FILTER_NOT_SET: + { + break; + } + } + switch (other.getActionCase()) { + case ASSIGN_NULL: + { + mergeAssignNull(other.getAssignNull()); + break; + } + case ASSIGN_SPECIFIC_VALUE: + { + mergeAssignSpecificValue(other.getAssignSpecificValue()); + break; + } + case ASSIGN_MIN_VALUE: + { + mergeAssignMinValue(other.getAssignMinValue()); + break; + } + case ASSIGN_MAX_VALUE: + { + mergeAssignMaxValue(other.getAssignMaxValue()); + break; + } + case ROUND_SCALE: + { + mergeRoundScale(other.getRoundScale()); + break; + } + case APPLY_HASH: + { + mergeApplyHash(other.getApplyHash()); + break; + } + case ACTION_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(getIsNullFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getValueListFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getIntComparisonFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage( + getDoubleComparisonFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 103; + break; + } // case 826 + case 1602: + { + input.readMessage(getAssignNullFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 200; + break; + } // case 1602 + case 1610: + { + input.readMessage( + getAssignSpecificValueFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 201; + break; + } // case 1610 + case 1618: + { + input.readMessage(getAssignMinValueFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 202; + break; + } // case 1618 + case 1626: + { + input.readMessage(getAssignMaxValueFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 203; + break; + } // case 1626 + case 1634: + { + input.readMessage(getRoundScaleFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 204; + break; + } // case 1634 + case 1642: + { + input.readMessage(getApplyHashFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 205; + break; + } // case 1642 + 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 filterCase_ = 0; + private java.lang.Object filter_; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public Builder clearFilter() { + filterCase_ = 0; + filter_ = null; + onChanged(); + return this; + } + + private int actionCase_ = 0; + private java.lang.Object action_; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public Builder clearAction() { + actionCase_ = 0; + action_ = 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> + isNullBuilder_; + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the isNull field is set. + */ + @java.lang.Override + public boolean hasIsNull() { + return filterCase_ == 100; + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isNull. + */ + @java.lang.Override + public com.google.protobuf.Empty getIsNull() { + if (isNullBuilder_ == null) { + if (filterCase_ == 100) { + return (com.google.protobuf.Empty) filter_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } else { + if (filterCase_ == 100) { + return isNullBuilder_.getMessage(); + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setIsNull(com.google.protobuf.Empty value) { + if (isNullBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + isNullBuilder_.setMessage(value); + } + filterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setIsNull(com.google.protobuf.Empty.Builder builderForValue) { + if (isNullBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + isNullBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeIsNull(com.google.protobuf.Empty value) { + if (isNullBuilder_ == null) { + if (filterCase_ == 100 && filter_ != com.google.protobuf.Empty.getDefaultInstance()) { + filter_ = + com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 100) { + isNullBuilder_.mergeFrom(value); + } else { + isNullBuilder_.setMessage(value); + } + } + filterCase_ = 100; + return this; + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearIsNull() { + if (isNullBuilder_ == null) { + if (filterCase_ == 100) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 100) { + filterCase_ = 0; + filter_ = null; + } + isNullBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Empty.Builder getIsNullBuilder() { + return getIsNullFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getIsNullOrBuilder() { + if ((filterCase_ == 100) && (isNullBuilder_ != null)) { + return isNullBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 100) { + return (com.google.protobuf.Empty) filter_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Value is null
+     * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + getIsNullFieldBuilder() { + if (isNullBuilder_ == null) { + if (!(filterCase_ == 100)) { + filter_ = com.google.protobuf.Empty.getDefaultInstance(); + } + isNullBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) filter_, getParentForChildren(), isClean()); + filter_ = null; + } + filterCase_ = 100; + onChanged(); + return isNullBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ValueListFilter, + com.google.cloud.clouddms.v1.ValueListFilter.Builder, + com.google.cloud.clouddms.v1.ValueListFilterOrBuilder> + valueListBuilder_; + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the valueList field is set. + */ + @java.lang.Override + public boolean hasValueList() { + return filterCase_ == 101; + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The valueList. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueListFilter getValueList() { + if (valueListBuilder_ == null) { + if (filterCase_ == 101) { + return (com.google.cloud.clouddms.v1.ValueListFilter) filter_; + } + return com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance(); + } else { + if (filterCase_ == 101) { + return valueListBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValueList(com.google.cloud.clouddms.v1.ValueListFilter value) { + if (valueListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + valueListBuilder_.setMessage(value); + } + filterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValueList( + com.google.cloud.clouddms.v1.ValueListFilter.Builder builderForValue) { + if (valueListBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + valueListBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeValueList(com.google.cloud.clouddms.v1.ValueListFilter value) { + if (valueListBuilder_ == null) { + if (filterCase_ == 101 + && filter_ != com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance()) { + filter_ = + com.google.cloud.clouddms.v1.ValueListFilter.newBuilder( + (com.google.cloud.clouddms.v1.ValueListFilter) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 101) { + valueListBuilder_.mergeFrom(value); + } else { + valueListBuilder_.setMessage(value); + } + } + filterCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValueList() { + if (valueListBuilder_ == null) { + if (filterCase_ == 101) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 101) { + filterCase_ = 0; + filter_ = null; + } + valueListBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.ValueListFilter.Builder getValueListBuilder() { + return getValueListFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ValueListFilterOrBuilder getValueListOrBuilder() { + if ((filterCase_ == 101) && (valueListBuilder_ != null)) { + return valueListBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 101) { + return (com.google.cloud.clouddms.v1.ValueListFilter) filter_; + } + return com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Value is found in the specified list.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ValueListFilter, + com.google.cloud.clouddms.v1.ValueListFilter.Builder, + com.google.cloud.clouddms.v1.ValueListFilterOrBuilder> + getValueListFieldBuilder() { + if (valueListBuilder_ == null) { + if (!(filterCase_ == 101)) { + filter_ = com.google.cloud.clouddms.v1.ValueListFilter.getDefaultInstance(); + } + valueListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ValueListFilter, + com.google.cloud.clouddms.v1.ValueListFilter.Builder, + com.google.cloud.clouddms.v1.ValueListFilterOrBuilder>( + (com.google.cloud.clouddms.v1.ValueListFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 101; + onChanged(); + return valueListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.IntComparisonFilter, + com.google.cloud.clouddms.v1.IntComparisonFilter.Builder, + com.google.cloud.clouddms.v1.IntComparisonFilterOrBuilder> + intComparisonBuilder_; + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the intComparison field is set. + */ + @java.lang.Override + public boolean hasIntComparison() { + return filterCase_ == 102; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.IntComparisonFilter getIntComparison() { + if (intComparisonBuilder_ == null) { + if (filterCase_ == 102) { + return (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance(); + } else { + if (filterCase_ == 102) { + return intComparisonBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIntComparison(com.google.cloud.clouddms.v1.IntComparisonFilter value) { + if (intComparisonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + intComparisonBuilder_.setMessage(value); + } + filterCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIntComparison( + com.google.cloud.clouddms.v1.IntComparisonFilter.Builder builderForValue) { + if (intComparisonBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + intComparisonBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIntComparison(com.google.cloud.clouddms.v1.IntComparisonFilter value) { + if (intComparisonBuilder_ == null) { + if (filterCase_ == 102 + && filter_ != com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance()) { + filter_ = + com.google.cloud.clouddms.v1.IntComparisonFilter.newBuilder( + (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 102) { + intComparisonBuilder_.mergeFrom(value); + } else { + intComparisonBuilder_.setMessage(value); + } + } + filterCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIntComparison() { + if (intComparisonBuilder_ == null) { + if (filterCase_ == 102) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 102) { + filterCase_ = 0; + filter_ = null; + } + intComparisonBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.IntComparisonFilter.Builder getIntComparisonBuilder() { + return getIntComparisonFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.IntComparisonFilterOrBuilder getIntComparisonOrBuilder() { + if ((filterCase_ == 102) && (intComparisonBuilder_ != null)) { + return intComparisonBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 102) { + return (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type integer.
+     * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.IntComparisonFilter, + com.google.cloud.clouddms.v1.IntComparisonFilter.Builder, + com.google.cloud.clouddms.v1.IntComparisonFilterOrBuilder> + getIntComparisonFieldBuilder() { + if (intComparisonBuilder_ == null) { + if (!(filterCase_ == 102)) { + filter_ = com.google.cloud.clouddms.v1.IntComparisonFilter.getDefaultInstance(); + } + intComparisonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.IntComparisonFilter, + com.google.cloud.clouddms.v1.IntComparisonFilter.Builder, + com.google.cloud.clouddms.v1.IntComparisonFilterOrBuilder>( + (com.google.cloud.clouddms.v1.IntComparisonFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 102; + onChanged(); + return intComparisonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DoubleComparisonFilter, + com.google.cloud.clouddms.v1.DoubleComparisonFilter.Builder, + com.google.cloud.clouddms.v1.DoubleComparisonFilterOrBuilder> + doubleComparisonBuilder_; + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the doubleComparison field is set. + */ + @java.lang.Override + public boolean hasDoubleComparison() { + return filterCase_ == 103; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The doubleComparison. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DoubleComparisonFilter getDoubleComparison() { + if (doubleComparisonBuilder_ == null) { + if (filterCase_ == 103) { + return (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance(); + } else { + if (filterCase_ == 103) { + return doubleComparisonBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDoubleComparison(com.google.cloud.clouddms.v1.DoubleComparisonFilter value) { + if (doubleComparisonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + doubleComparisonBuilder_.setMessage(value); + } + filterCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDoubleComparison( + com.google.cloud.clouddms.v1.DoubleComparisonFilter.Builder builderForValue) { + if (doubleComparisonBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + doubleComparisonBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDoubleComparison( + com.google.cloud.clouddms.v1.DoubleComparisonFilter value) { + if (doubleComparisonBuilder_ == null) { + if (filterCase_ == 103 + && filter_ + != com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance()) { + filter_ = + com.google.cloud.clouddms.v1.DoubleComparisonFilter.newBuilder( + (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 103) { + doubleComparisonBuilder_.mergeFrom(value); + } else { + doubleComparisonBuilder_.setMessage(value); + } + } + filterCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDoubleComparison() { + if (doubleComparisonBuilder_ == null) { + if (filterCase_ == 103) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 103) { + filterCase_ = 0; + filter_ = null; + } + doubleComparisonBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.DoubleComparisonFilter.Builder + getDoubleComparisonBuilder() { + return getDoubleComparisonFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DoubleComparisonFilterOrBuilder + getDoubleComparisonOrBuilder() { + if ((filterCase_ == 103) && (doubleComparisonBuilder_ != null)) { + return doubleComparisonBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 103) { + return (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_; + } + return com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Filter on relation between source value and compare value of
+     * type double.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DoubleComparisonFilter, + com.google.cloud.clouddms.v1.DoubleComparisonFilter.Builder, + com.google.cloud.clouddms.v1.DoubleComparisonFilterOrBuilder> + getDoubleComparisonFieldBuilder() { + if (doubleComparisonBuilder_ == null) { + if (!(filterCase_ == 103)) { + filter_ = com.google.cloud.clouddms.v1.DoubleComparisonFilter.getDefaultInstance(); + } + doubleComparisonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DoubleComparisonFilter, + com.google.cloud.clouddms.v1.DoubleComparisonFilter.Builder, + com.google.cloud.clouddms.v1.DoubleComparisonFilterOrBuilder>( + (com.google.cloud.clouddms.v1.DoubleComparisonFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 103; + onChanged(); + return doubleComparisonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + assignNullBuilder_; + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignNull field is set. + */ + @java.lang.Override + public boolean hasAssignNull() { + return actionCase_ == 200; + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignNull. + */ + @java.lang.Override + public com.google.protobuf.Empty getAssignNull() { + if (assignNullBuilder_ == null) { + if (actionCase_ == 200) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } else { + if (actionCase_ == 200) { + return assignNullBuilder_.getMessage(); + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignNull(com.google.protobuf.Empty value) { + if (assignNullBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + assignNullBuilder_.setMessage(value); + } + actionCase_ = 200; + return this; + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignNull(com.google.protobuf.Empty.Builder builderForValue) { + if (assignNullBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + assignNullBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 200; + return this; + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAssignNull(com.google.protobuf.Empty value) { + if (assignNullBuilder_ == null) { + if (actionCase_ == 200 && action_ != com.google.protobuf.Empty.getDefaultInstance()) { + action_ = + com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 200) { + assignNullBuilder_.mergeFrom(value); + } else { + assignNullBuilder_.setMessage(value); + } + } + actionCase_ = 200; + return this; + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssignNull() { + if (assignNullBuilder_ == null) { + if (actionCase_ == 200) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 200) { + actionCase_ = 0; + action_ = null; + } + assignNullBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Empty.Builder getAssignNullBuilder() { + return getAssignNullFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getAssignNullOrBuilder() { + if ((actionCase_ == 200) && (assignNullBuilder_ != null)) { + return assignNullBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 200) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to null
+     * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + getAssignNullFieldBuilder() { + if (assignNullBuilder_ == null) { + if (!(actionCase_ == 200)) { + action_ = com.google.protobuf.Empty.getDefaultInstance(); + } + assignNullBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) action_, getParentForChildren(), isClean()); + action_ = null; + } + actionCase_ = 200; + onChanged(); + return assignNullBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AssignSpecificValue, + com.google.cloud.clouddms.v1.AssignSpecificValue.Builder, + com.google.cloud.clouddms.v1.AssignSpecificValueOrBuilder> + assignSpecificValueBuilder_; + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignSpecificValue field is set. + */ + @java.lang.Override + public boolean hasAssignSpecificValue() { + return actionCase_ == 201; + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignSpecificValue. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AssignSpecificValue getAssignSpecificValue() { + if (assignSpecificValueBuilder_ == null) { + if (actionCase_ == 201) { + return (com.google.cloud.clouddms.v1.AssignSpecificValue) action_; + } + return com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance(); + } else { + if (actionCase_ == 201) { + return assignSpecificValueBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignSpecificValue(com.google.cloud.clouddms.v1.AssignSpecificValue value) { + if (assignSpecificValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + assignSpecificValueBuilder_.setMessage(value); + } + actionCase_ = 201; + return this; + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignSpecificValue( + com.google.cloud.clouddms.v1.AssignSpecificValue.Builder builderForValue) { + if (assignSpecificValueBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + assignSpecificValueBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 201; + return this; + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAssignSpecificValue( + com.google.cloud.clouddms.v1.AssignSpecificValue value) { + if (assignSpecificValueBuilder_ == null) { + if (actionCase_ == 201 + && action_ != com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance()) { + action_ = + com.google.cloud.clouddms.v1.AssignSpecificValue.newBuilder( + (com.google.cloud.clouddms.v1.AssignSpecificValue) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 201) { + assignSpecificValueBuilder_.mergeFrom(value); + } else { + assignSpecificValueBuilder_.setMessage(value); + } + } + actionCase_ = 201; + return this; + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssignSpecificValue() { + if (assignSpecificValueBuilder_ == null) { + if (actionCase_ == 201) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 201) { + actionCase_ = 0; + action_ = null; + } + assignSpecificValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.AssignSpecificValue.Builder + getAssignSpecificValueBuilder() { + return getAssignSpecificValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AssignSpecificValueOrBuilder + getAssignSpecificValueOrBuilder() { + if ((actionCase_ == 201) && (assignSpecificValueBuilder_ != null)) { + return assignSpecificValueBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 201) { + return (com.google.cloud.clouddms.v1.AssignSpecificValue) action_; + } + return com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to a specific value (value is converted to fit the target
+     * data type)
+     * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AssignSpecificValue, + com.google.cloud.clouddms.v1.AssignSpecificValue.Builder, + com.google.cloud.clouddms.v1.AssignSpecificValueOrBuilder> + getAssignSpecificValueFieldBuilder() { + if (assignSpecificValueBuilder_ == null) { + if (!(actionCase_ == 201)) { + action_ = com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance(); + } + assignSpecificValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AssignSpecificValue, + com.google.cloud.clouddms.v1.AssignSpecificValue.Builder, + com.google.cloud.clouddms.v1.AssignSpecificValueOrBuilder>( + (com.google.cloud.clouddms.v1.AssignSpecificValue) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 201; + onChanged(); + return assignSpecificValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + assignMinValueBuilder_; + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignMinValue field is set. + */ + @java.lang.Override + public boolean hasAssignMinValue() { + return actionCase_ == 202; + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignMinValue. + */ + @java.lang.Override + public com.google.protobuf.Empty getAssignMinValue() { + if (assignMinValueBuilder_ == null) { + if (actionCase_ == 202) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } else { + if (actionCase_ == 202) { + return assignMinValueBuilder_.getMessage(); + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignMinValue(com.google.protobuf.Empty value) { + if (assignMinValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + assignMinValueBuilder_.setMessage(value); + } + actionCase_ = 202; + return this; + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignMinValue(com.google.protobuf.Empty.Builder builderForValue) { + if (assignMinValueBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + assignMinValueBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 202; + return this; + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAssignMinValue(com.google.protobuf.Empty value) { + if (assignMinValueBuilder_ == null) { + if (actionCase_ == 202 && action_ != com.google.protobuf.Empty.getDefaultInstance()) { + action_ = + com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 202) { + assignMinValueBuilder_.mergeFrom(value); + } else { + assignMinValueBuilder_.setMessage(value); + } + } + actionCase_ = 202; + return this; + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssignMinValue() { + if (assignMinValueBuilder_ == null) { + if (actionCase_ == 202) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 202) { + actionCase_ = 0; + action_ = null; + } + assignMinValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Empty.Builder getAssignMinValueBuilder() { + return getAssignMinValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getAssignMinValueOrBuilder() { + if ((actionCase_ == 202) && (assignMinValueBuilder_ != null)) { + return assignMinValueBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 202) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to min_value - if integer or numeric, will use
+     * int.minvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + getAssignMinValueFieldBuilder() { + if (assignMinValueBuilder_ == null) { + if (!(actionCase_ == 202)) { + action_ = com.google.protobuf.Empty.getDefaultInstance(); + } + assignMinValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) action_, getParentForChildren(), isClean()); + action_ = null; + } + actionCase_ = 202; + onChanged(); + return assignMinValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + assignMaxValueBuilder_; + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignMaxValue field is set. + */ + @java.lang.Override + public boolean hasAssignMaxValue() { + return actionCase_ == 203; + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignMaxValue. + */ + @java.lang.Override + public com.google.protobuf.Empty getAssignMaxValue() { + if (assignMaxValueBuilder_ == null) { + if (actionCase_ == 203) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } else { + if (actionCase_ == 203) { + return assignMaxValueBuilder_.getMessage(); + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignMaxValue(com.google.protobuf.Empty value) { + if (assignMaxValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + assignMaxValueBuilder_.setMessage(value); + } + actionCase_ = 203; + return this; + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssignMaxValue(com.google.protobuf.Empty.Builder builderForValue) { + if (assignMaxValueBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + assignMaxValueBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 203; + return this; + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAssignMaxValue(com.google.protobuf.Empty value) { + if (assignMaxValueBuilder_ == null) { + if (actionCase_ == 203 && action_ != com.google.protobuf.Empty.getDefaultInstance()) { + action_ = + com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 203) { + assignMaxValueBuilder_.mergeFrom(value); + } else { + assignMaxValueBuilder_.setMessage(value); + } + } + actionCase_ = 203; + return this; + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssignMaxValue() { + if (assignMaxValueBuilder_ == null) { + if (actionCase_ == 203) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 203) { + actionCase_ = 0; + action_ = null; + } + assignMaxValueBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Empty.Builder getAssignMaxValueBuilder() { + return getAssignMaxValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.EmptyOrBuilder getAssignMaxValueOrBuilder() { + if ((actionCase_ == 203) && (assignMaxValueBuilder_ != null)) { + return assignMaxValueBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 203) { + return (com.google.protobuf.Empty) action_; + } + return com.google.protobuf.Empty.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Set to max_value - if integer or numeric, will use
+     * int.maxvalue, etc
+     * 
+ * + * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder> + getAssignMaxValueFieldBuilder() { + if (assignMaxValueBuilder_ == null) { + if (!(actionCase_ == 203)) { + action_ = com.google.protobuf.Empty.getDefaultInstance(); + } + assignMaxValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Empty, + com.google.protobuf.Empty.Builder, + com.google.protobuf.EmptyOrBuilder>( + (com.google.protobuf.Empty) action_, getParentForChildren(), isClean()); + action_ = null; + } + actionCase_ = 203; + onChanged(); + return assignMaxValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.RoundToScale, + com.google.cloud.clouddms.v1.RoundToScale.Builder, + com.google.cloud.clouddms.v1.RoundToScaleOrBuilder> + roundScaleBuilder_; + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the roundScale field is set. + */ + @java.lang.Override + public boolean hasRoundScale() { + return actionCase_ == 204; + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The roundScale. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.RoundToScale getRoundScale() { + if (roundScaleBuilder_ == null) { + if (actionCase_ == 204) { + return (com.google.cloud.clouddms.v1.RoundToScale) action_; + } + return com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance(); + } else { + if (actionCase_ == 204) { + return roundScaleBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoundScale(com.google.cloud.clouddms.v1.RoundToScale value) { + if (roundScaleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + roundScaleBuilder_.setMessage(value); + } + actionCase_ = 204; + return this; + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoundScale( + com.google.cloud.clouddms.v1.RoundToScale.Builder builderForValue) { + if (roundScaleBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + roundScaleBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 204; + return this; + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRoundScale(com.google.cloud.clouddms.v1.RoundToScale value) { + if (roundScaleBuilder_ == null) { + if (actionCase_ == 204 + && action_ != com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance()) { + action_ = + com.google.cloud.clouddms.v1.RoundToScale.newBuilder( + (com.google.cloud.clouddms.v1.RoundToScale) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 204) { + roundScaleBuilder_.mergeFrom(value); + } else { + roundScaleBuilder_.setMessage(value); + } + } + actionCase_ = 204; + return this; + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRoundScale() { + if (roundScaleBuilder_ == null) { + if (actionCase_ == 204) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 204) { + actionCase_ = 0; + action_ = null; + } + roundScaleBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.RoundToScale.Builder getRoundScaleBuilder() { + return getRoundScaleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.RoundToScaleOrBuilder getRoundScaleOrBuilder() { + if ((actionCase_ == 204) && (roundScaleBuilder_ != null)) { + return roundScaleBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 204) { + return (com.google.cloud.clouddms.v1.RoundToScale) action_; + } + return com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Allows the data to change scale
+     * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.RoundToScale, + com.google.cloud.clouddms.v1.RoundToScale.Builder, + com.google.cloud.clouddms.v1.RoundToScaleOrBuilder> + getRoundScaleFieldBuilder() { + if (roundScaleBuilder_ == null) { + if (!(actionCase_ == 204)) { + action_ = com.google.cloud.clouddms.v1.RoundToScale.getDefaultInstance(); + } + roundScaleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.RoundToScale, + com.google.cloud.clouddms.v1.RoundToScale.Builder, + com.google.cloud.clouddms.v1.RoundToScaleOrBuilder>( + (com.google.cloud.clouddms.v1.RoundToScale) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 204; + onChanged(); + return roundScaleBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ApplyHash, + com.google.cloud.clouddms.v1.ApplyHash.Builder, + com.google.cloud.clouddms.v1.ApplyHashOrBuilder> + applyHashBuilder_; + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applyHash field is set. + */ + @java.lang.Override + public boolean hasApplyHash() { + return actionCase_ == 205; + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applyHash. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyHash getApplyHash() { + if (applyHashBuilder_ == null) { + if (actionCase_ == 205) { + return (com.google.cloud.clouddms.v1.ApplyHash) action_; + } + return com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance(); + } else { + if (actionCase_ == 205) { + return applyHashBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplyHash(com.google.cloud.clouddms.v1.ApplyHash value) { + if (applyHashBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + applyHashBuilder_.setMessage(value); + } + actionCase_ = 205; + return this; + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplyHash(com.google.cloud.clouddms.v1.ApplyHash.Builder builderForValue) { + if (applyHashBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + applyHashBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 205; + return this; + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApplyHash(com.google.cloud.clouddms.v1.ApplyHash value) { + if (applyHashBuilder_ == null) { + if (actionCase_ == 205 + && action_ != com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance()) { + action_ = + com.google.cloud.clouddms.v1.ApplyHash.newBuilder( + (com.google.cloud.clouddms.v1.ApplyHash) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 205) { + applyHashBuilder_.mergeFrom(value); + } else { + applyHashBuilder_.setMessage(value); + } + } + actionCase_ = 205; + return this; + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplyHash() { + if (applyHashBuilder_ == null) { + if (actionCase_ == 205) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 205) { + actionCase_ = 0; + action_ = null; + } + applyHashBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.ApplyHash.Builder getApplyHashBuilder() { + return getApplyHashFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyHashOrBuilder getApplyHashOrBuilder() { + if ((actionCase_ == 205) && (applyHashBuilder_ != null)) { + return applyHashBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 205) { + return (com.google.cloud.clouddms.v1.ApplyHash) action_; + } + return com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Applies a hash function on the data
+     * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ApplyHash, + com.google.cloud.clouddms.v1.ApplyHash.Builder, + com.google.cloud.clouddms.v1.ApplyHashOrBuilder> + getApplyHashFieldBuilder() { + if (applyHashBuilder_ == null) { + if (!(actionCase_ == 205)) { + action_ = com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance(); + } + applyHashBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ApplyHash, + com.google.cloud.clouddms.v1.ApplyHash.Builder, + com.google.cloud.clouddms.v1.ApplyHashOrBuilder>( + (com.google.cloud.clouddms.v1.ApplyHash) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 205; + onChanged(); + return applyHashBuilder_; + } + + @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.ValueTransformation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ValueTransformation) + private static final com.google.cloud.clouddms.v1.ValueTransformation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ValueTransformation(); + } + + public static com.google.cloud.clouddms.v1.ValueTransformation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueTransformation 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.ValueTransformation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueTransformationOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueTransformationOrBuilder.java new file mode 100644 index 000000000000..d316f40556fc --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ValueTransformationOrBuilder.java @@ -0,0 +1,439 @@ +/* + * 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 ValueTransformationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ValueTransformation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Value is null
+   * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the isNull field is set. + */ + boolean hasIsNull(); + /** + * + * + *
+   * Optional. Value is null
+   * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isNull. + */ + com.google.protobuf.Empty getIsNull(); + /** + * + * + *
+   * Optional. Value is null
+   * 
+ * + * .google.protobuf.Empty is_null = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.EmptyOrBuilder getIsNullOrBuilder(); + + /** + * + * + *
+   * Optional. Value is found in the specified list.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the valueList field is set. + */ + boolean hasValueList(); + /** + * + * + *
+   * Optional. Value is found in the specified list.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The valueList. + */ + com.google.cloud.clouddms.v1.ValueListFilter getValueList(); + /** + * + * + *
+   * Optional. Value is found in the specified list.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ValueListFilter value_list = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.ValueListFilterOrBuilder getValueListOrBuilder(); + + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type integer.
+   * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the intComparison field is set. + */ + boolean hasIntComparison(); + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type integer.
+   * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intComparison. + */ + com.google.cloud.clouddms.v1.IntComparisonFilter getIntComparison(); + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type integer.
+   * 
+ * + * + * .google.cloud.clouddms.v1.IntComparisonFilter int_comparison = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.IntComparisonFilterOrBuilder getIntComparisonOrBuilder(); + + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type double.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the doubleComparison field is set. + */ + boolean hasDoubleComparison(); + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type double.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The doubleComparison. + */ + com.google.cloud.clouddms.v1.DoubleComparisonFilter getDoubleComparison(); + /** + * + * + *
+   * Optional. Filter on relation between source value and compare value of
+   * type double.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DoubleComparisonFilter double_comparison = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.DoubleComparisonFilterOrBuilder getDoubleComparisonOrBuilder(); + + /** + * + * + *
+   * Optional. Set to null
+   * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignNull field is set. + */ + boolean hasAssignNull(); + /** + * + * + *
+   * Optional. Set to null
+   * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignNull. + */ + com.google.protobuf.Empty getAssignNull(); + /** + * + * + *
+   * Optional. Set to null
+   * 
+ * + * .google.protobuf.Empty assign_null = 200 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.EmptyOrBuilder getAssignNullOrBuilder(); + + /** + * + * + *
+   * Optional. Set to a specific value (value is converted to fit the target
+   * data type)
+   * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignSpecificValue field is set. + */ + boolean hasAssignSpecificValue(); + /** + * + * + *
+   * Optional. Set to a specific value (value is converted to fit the target
+   * data type)
+   * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignSpecificValue. + */ + com.google.cloud.clouddms.v1.AssignSpecificValue getAssignSpecificValue(); + /** + * + * + *
+   * Optional. Set to a specific value (value is converted to fit the target
+   * data type)
+   * 
+ * + * + * .google.cloud.clouddms.v1.AssignSpecificValue assign_specific_value = 201 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.AssignSpecificValueOrBuilder getAssignSpecificValueOrBuilder(); + + /** + * + * + *
+   * Optional. Set to min_value - if integer or numeric, will use
+   * int.minvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignMinValue field is set. + */ + boolean hasAssignMinValue(); + /** + * + * + *
+   * Optional. Set to min_value - if integer or numeric, will use
+   * int.minvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignMinValue. + */ + com.google.protobuf.Empty getAssignMinValue(); + /** + * + * + *
+   * Optional. Set to min_value - if integer or numeric, will use
+   * int.minvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_min_value = 202 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.EmptyOrBuilder getAssignMinValueOrBuilder(); + + /** + * + * + *
+   * Optional. Set to max_value - if integer or numeric, will use
+   * int.maxvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assignMaxValue field is set. + */ + boolean hasAssignMaxValue(); + /** + * + * + *
+   * Optional. Set to max_value - if integer or numeric, will use
+   * int.maxvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assignMaxValue. + */ + com.google.protobuf.Empty getAssignMaxValue(); + /** + * + * + *
+   * Optional. Set to max_value - if integer or numeric, will use
+   * int.maxvalue, etc
+   * 
+ * + * .google.protobuf.Empty assign_max_value = 203 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.EmptyOrBuilder getAssignMaxValueOrBuilder(); + + /** + * + * + *
+   * Optional. Allows the data to change scale
+   * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the roundScale field is set. + */ + boolean hasRoundScale(); + /** + * + * + *
+   * Optional. Allows the data to change scale
+   * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The roundScale. + */ + com.google.cloud.clouddms.v1.RoundToScale getRoundScale(); + /** + * + * + *
+   * Optional. Allows the data to change scale
+   * 
+ * + * + * .google.cloud.clouddms.v1.RoundToScale round_scale = 204 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.RoundToScaleOrBuilder getRoundScaleOrBuilder(); + + /** + * + * + *
+   * Optional. Applies a hash function on the data
+   * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applyHash field is set. + */ + boolean hasApplyHash(); + /** + * + * + *
+   * Optional. Applies a hash function on the data
+   * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applyHash. + */ + com.google.cloud.clouddms.v1.ApplyHash getApplyHash(); + /** + * + * + *
+   * Optional. Applies a hash function on the data
+   * 
+ * + * + * .google.cloud.clouddms.v1.ApplyHash apply_hash = 205 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.ApplyHashOrBuilder getApplyHashOrBuilder(); + + com.google.cloud.clouddms.v1.ValueTransformation.FilterCase getFilterCase(); + + com.google.cloud.clouddms.v1.ValueTransformation.ActionCase getActionCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java index 2145152c0c33..acd5ff298a50 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java @@ -113,6 +113,117 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Field mask is used to specify the changed fields to be verified.
+   * It will not update the migration job.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional. Field mask is used to specify the changed fields to be verified.
+   * It will not update the migration job.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional. Field mask is used to specify the changed fields to be verified.
+   * It will not update the migration job.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int MIGRATION_JOB_FIELD_NUMBER = 3; + private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; + /** + * + * + *
+   * Optional. The changed migration job parameters to verify.
+   * It will not update the migration job.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the migrationJob field is set. + */ + @java.lang.Override + public boolean hasMigrationJob() { + return migrationJob_ != null; + } + /** + * + * + *
+   * Optional. The changed migration job parameters to verify.
+   * It will not update the migration job.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The migrationJob. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; + } + /** + * + * + *
+   * Optional. The changed migration job parameters to verify.
+   * It will not update the migration job.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -130,6 +241,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (migrationJob_ != null) { + output.writeMessage(3, getMigrationJob()); + } getUnknownFields().writeTo(output); } @@ -142,6 +259,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (migrationJob_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMigrationJob()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -159,6 +282,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) obj; if (!getName().equals(other.getName())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasMigrationJob() != other.hasMigrationJob()) return false; + if (hasMigrationJob()) { + if (!getMigrationJob().equals(other.getMigrationJob())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,6 +303,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasMigrationJob()) { + hash = (37 * hash) + MIGRATION_JOB_FIELD_NUMBER; + hash = (53 * hash) + getMigrationJob().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -313,6 +452,16 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + migrationJob_ = null; + if (migrationJobBuilder_ != null) { + migrationJobBuilder_.dispose(); + migrationJobBuilder_ = null; + } return this; } @@ -352,6 +501,13 @@ private void buildPartial0(com.google.cloud.clouddms.v1.VerifyMigrationJobReques if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.migrationJob_ = + migrationJobBuilder_ == null ? migrationJob_ : migrationJobBuilder_.build(); + } } @java.lang.Override @@ -405,6 +561,12 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest bitField0_ |= 0x00000001; onChanged(); } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasMigrationJob()) { + mergeMigrationJob(other.getMigrationJob()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -437,6 +599,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getMigrationJobFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -562,6 +736,418 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional. Field mask is used to specify the changed fields to be verified.
+     * It will not update the migration job.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + migrationJobBuilder_; + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the migrationJob field is set. + */ + public boolean hasMigrationJob() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The migrationJob. + */ + public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { + if (migrationJobBuilder_ == null) { + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; + } else { + return migrationJobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { + if (migrationJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + migrationJob_ = value; + } else { + migrationJobBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMigrationJob( + com.google.cloud.clouddms.v1.MigrationJob.Builder builderForValue) { + if (migrationJobBuilder_ == null) { + migrationJob_ = builderForValue.build(); + } else { + migrationJobBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { + if (migrationJobBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && migrationJob_ != null + && migrationJob_ != com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()) { + getMigrationJobBuilder().mergeFrom(value); + } else { + migrationJob_ = value; + } + } else { + migrationJobBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMigrationJob() { + bitField0_ = (bitField0_ & ~0x00000004); + migrationJob_ = null; + if (migrationJobBuilder_ != null) { + migrationJobBuilder_.dispose(); + migrationJobBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMigrationJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { + if (migrationJobBuilder_ != null) { + return migrationJobBuilder_.getMessageOrBuilder(); + } else { + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; + } + } + /** + * + * + *
+     * Optional. The changed migration job parameters to verify.
+     * It will not update the migration job.
+     * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + getMigrationJobFieldBuilder() { + if (migrationJobBuilder_ == null) { + migrationJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( + getMigrationJob(), getParentForChildren(), isClean()); + migrationJob_ = null; + } + return migrationJobBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java index 99d39490a7eb..96ffcac53865 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java @@ -47,4 +47,89 @@ public interface VerifyMigrationJobRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the changed fields to be verified.
+   * It will not update the migration job.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Field mask is used to specify the changed fields to be verified.
+   * It will not update the migration job.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Field mask is used to specify the changed fields to be verified.
+   * It will not update the migration job.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. The changed migration job parameters to verify.
+   * It will not update the migration job.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the migrationJob field is set. + */ + boolean hasMigrationJob(); + /** + * + * + *
+   * Optional. The changed migration job parameters to verify.
+   * It will not update the migration job.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The migrationJob. + */ + com.google.cloud.clouddms.v1.MigrationJob getMigrationJob(); + /** + * + * + *
+   * Optional. The changed migration job parameters to verify.
+   * It will not update the migration job.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto index 69d7d93d0162..0403e5a54b09 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto +++ b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/clouddms/v1/clouddms_resources.proto"; import "google/cloud/clouddms/v1/conversionworkspace_resources.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -191,6 +192,16 @@ service DataMigrationService { }; } + // Generate a TCP Proxy configuration script to configure a cloud-hosted VM + // running a TCP Proxy. + rpc GenerateTcpProxyScript(GenerateTcpProxyScriptRequest) + returns (TcpProxyScript) { + option (google.api.http) = { + post: "/v1/{migration_job=projects/*/locations/*/migrationJobs/*}:generateTcpProxyScript" + body: "*" + }; + } + // Retrieves a list of all connection profiles in a given project and // location. rpc ListConnectionProfiles(ListConnectionProfilesRequest) @@ -360,6 +371,42 @@ service DataMigrationService { }; } + // Creates a new mapping rule for a given conversion workspace. + rpc CreateMappingRule(CreateMappingRuleRequest) returns (MappingRule) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/conversionWorkspaces/*}/mappingRules" + body: "mapping_rule" + }; + option (google.api.method_signature) = + "parent,mapping_rule,mapping_rule_id"; + } + + // Deletes a single mapping rule. + rpc DeleteMappingRule(DeleteMappingRuleRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*/mappingRules/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the mapping rules for a specific conversion workspace. + rpc ListMappingRules(ListMappingRulesRequest) + returns (ListMappingRulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/conversionWorkspaces/*}/mappingRules" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a mapping rule. + rpc GetMappingRule(GetMappingRuleRequest) returns (MappingRule) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*/mappingRules/*}" + }; + option (google.api.method_signature) = "name"; + } + // Imports a snapshot of the source database into the // conversion workspace. rpc SeedConversionWorkspace(SeedConversionWorkspaceRequest) @@ -568,14 +615,14 @@ message CreateMigrationJobRequest { // object. MigrationJob migration_job = 3 [(google.api.field_behavior) = REQUIRED]; - // A unique ID used to identify the request. If the server receives two - // requests with the same ID, then the second request is ignored. + // Optional. A unique ID used to identify the request. If the server receives + // two requests with the same ID, then the second request is ignored. // // It is recommended to always set this value to a UUID. // // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4; + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'UpdateMigrationJob' request. @@ -629,6 +676,10 @@ message StartMigrationJobRequest { string name = 1 [(google.api.resource_reference) = { type: "datamigration.googleapis.com/MigrationJob" }]; + + // Optional. Start the migration job without running prior configuration + // verification. Defaults to `false`. + bool skip_validation = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'StopMigrationJob' request. @@ -661,6 +712,15 @@ message VerifyMigrationJobRequest { string name = 1 [(google.api.resource_reference) = { type: "datamigration.googleapis.com/MigrationJob" }]; + + // Optional. Field mask is used to specify the changed fields to be verified. + // It will not update the migration job. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The changed migration job parameters to verify. + // It will not update the migration job. + MigrationJob migration_job = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'RestartMigrationJob' request. @@ -669,6 +729,10 @@ message RestartMigrationJobRequest { string name = 1 [(google.api.resource_reference) = { type: "datamigration.googleapis.com/MigrationJob" }]; + + // Optional. Restart the migration job without running prior configuration + // verification. Defaults to `false`. + bool skip_validation = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'GenerateSshScript' request. @@ -718,6 +782,38 @@ message SshScript { string script = 1; } +// Request message for 'GenerateTcpProxyScript' request. +message GenerateTcpProxyScriptRequest { + // Name of the migration job resource to generate the TCP Proxy script. + string migration_job = 1 [(google.api.resource_reference) = { + type: "datamigration.googleapis.com/MigrationJob" + }]; + + // Required. The name of the Compute instance that will host the proxy. + string vm_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of the Compute instance that will host the proxy. + string vm_machine_type = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Google Cloud Platform zone to create the VM in. The fully + // qualified name of the zone must be specified, including the region name, + // for example "us-central1-b". If not specified, uses the "-b" zone of the + // destination Connection Profile's region. + string vm_zone = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The name of the subnet the Compute instance will use for private + // connectivity. Must be supplied in the form of + // projects/{project}/regions/{region}/subnetworks/{subnetwork}. + // Note: the region for the subnet must match the Compute instance region. + string vm_subnet = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for 'GenerateTcpProxyScript' request. +message TcpProxyScript { + // The TCP Proxy configuration script. + string script = 1; +} + // Request message for 'ListConnectionProfiles' request. message ListConnectionProfilesRequest { // Required. The parent which owns this collection of connection profiles. @@ -786,7 +882,7 @@ message CreateConnectionProfileRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "datamigration.googleapis.com/ConnectionProfile" + child_type: "datamigration.googleapis.com/ConnectionProfile" } ]; @@ -1137,6 +1233,10 @@ message DeleteConversionWorkspaceRequest { // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. string request_id = 2; + + // Force delete the conversion workspace, even if there's a running migration + // that is using the workspace. + bool force = 3; } // Request message for 'CommitConversionWorkspace' request. @@ -1180,13 +1280,74 @@ message ApplyConversionWorkspaceRequest { // the entities. Supports Google AIP 160 based filtering. string filter = 2; + // 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]; + + // Optional. Specifies whether the conversion workspace is to be committed + // automatically after the apply. + bool auto_commit = 4 [(google.api.field_behavior) = OPTIONAL]; + // Which destination to use when applying the conversion workspace. oneof destination { - // Fully qualified (Uri) name of the destination connection profile. - string connection_profile = 100; + // Optional. Fully qualified (Uri) name of the destination connection + // profile. + string connection_profile = 100 [(google.api.field_behavior) = OPTIONAL]; } } +// Retrieve a list of all mapping rules in a given conversion workspace. +message ListMappingRulesRequest { + // Required. Name of the conversion workspace resource whose mapping rules are + // listed in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // The maximum number of rules to return. The service may return + // fewer than this value. + int32 page_size = 2; + + // The nextPageToken value received in the previous call to + // mappingRules.list, used in the subsequent request to retrieve the next + // page of results. On first call this should be left blank. When paginating, + // all other parameters provided to mappingRules.list must match the call + // that provided the page token. + string page_token = 3; +} + +// Response message for 'ListMappingRulesRequest' request. +message ListMappingRulesResponse { + // The list of conversion workspace mapping rules. + repeated MappingRule mapping_rules = 1; + + // A token which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for 'GetMappingRule' request. +message GetMappingRuleRequest { + // 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@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/MappingRule" + } + ]; +} + // Request message for 'SeedConversionWorkspace' request. message SeedConversionWorkspaceRequest { // Name of the conversion workspace resource to seed with new database @@ -1204,11 +1365,14 @@ message SeedConversionWorkspaceRequest { // either be from the source or destination databases and it can be provided // through a connection profile or a DDL file. oneof seed_from { - // Fully qualified (Uri) name of the source connection profile. - string source_connection_profile = 100; - - // Fully qualified (Uri) name of the destination connection profile. - string destination_connection_profile = 101; + // Optional. Fully qualified (Uri) name of the source connection profile. + string source_connection_profile = 100 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Fully qualified (Uri) name of the destination connection + // profile. + string destination_connection_profile = 101 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -1220,26 +1384,31 @@ message ConvertConversionWorkspaceRequest { type: "datamigration.googleapis.com/ConversionWorkspace" }]; - // Specifies whether the conversion workspace is to be committed automatically - // after the conversion. - bool auto_commit = 4; + // Optional. Specifies whether the conversion workspace is to be committed + // automatically after the conversion. + bool auto_commit = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter the entities to convert. Leaving this field empty will + // convert all of the entities. Supports Google AIP-160 style filtering. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; - // Filter the entities to convert. Leaving this field empty will convert all - // of the entities. Supports Google AIP-160 style filtering. - string filter = 5; + // Optional. Automatically convert the full entity path for each entity + // specified by the filter. For example, if the filter specifies a table, that + // table schema (and database if there is one) will also be converted. + bool convert_full_path = 6 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'ImportMappingRules' request. message ImportMappingRulesRequest { // Details of a single rules file. message RulesFile { - // The filename of the rules that needs to be converted. The filename is - // used mainly so that future logs of the import rules job contain it, and - // can therefore be searched by it. - string rules_source_filename = 1; + // Required. The filename of the rules that needs to be converted. The + // filename is used mainly so that future logs of the import rules job + // contain it, and can therefore be searched by it. + string rules_source_filename = 1 [(google.api.field_behavior) = REQUIRED]; - // The text content of the rules that needs to be converted. - string rules_content = 2; + // Required. The text content of the rules that needs to be converted. + string rules_content = 2 [(google.api.field_behavior) = REQUIRED]; } // Required. Name of the conversion workspace resource to import the rules to @@ -1252,15 +1421,16 @@ message ImportMappingRulesRequest { } ]; - // The format of the rules content file. - ImportRulesFileFormat rules_format = 2; + // Required. The format of the rules content file. + ImportRulesFileFormat rules_format = 2 + [(google.api.field_behavior) = REQUIRED]; - // One or more rules files. - repeated RulesFile rules_files = 3; + // Required. One or more rules files. + repeated RulesFile rules_files = 3 [(google.api.field_behavior) = REQUIRED]; - // Should the conversion workspace be committed automatically after the - // import operation. - bool auto_commit = 6; + // Required. Should the conversion workspace be committed automatically after + // the import operation. + bool auto_commit = 6 [(google.api.field_behavior) = REQUIRED]; } // Request message for 'DescribeDatabaseEntities' request. @@ -1290,31 +1460,35 @@ message DescribeDatabaseEntitiesRequest { } ]; - // The maximum number of entities to return. The service may return + // Optional. The maximum number of entities to return. The service may return // fewer entities than the value specifies. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; - // The nextPageToken value received in the previous call to + // Optional. The nextPageToken value received in the previous call to // conversionWorkspace.describeDatabaseEntities, used in the subsequent // request to retrieve the next page of results. On first call this should be // left blank. When paginating, all other parameters provided to // conversionWorkspace.describeDatabaseEntities must match the call that // provided the page token. - string page_token = 4; + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The tree to fetch. + DBTreeType tree = 6 [(google.api.field_behavior) = REQUIRED]; - // The tree to fetch. - DBTreeType tree = 6; + // Optional. Whether to retrieve the latest committed version of the entities + // or the latest version. This field is ignored if a specific commit_id is + // specified. + bool uncommitted = 11 [(google.api.field_behavior) = OPTIONAL]; - // Whether to retrieve the latest committed version of the entities or the - // latest version. This field is ignored if a specific commit_id is specified. - bool uncommitted = 11; + // Optional. Request a specific commit ID. If not specified, the entities from + // the latest commit are returned. + string commit_id = 12 [(google.api.field_behavior) = OPTIONAL]; - // Request a specific commit ID. If not specified, the entities from the - // latest commit are returned. - string commit_id = 12; + // Optional. Filter the returned entities based on AIP-160 standard. + string filter = 13 [(google.api.field_behavior) = OPTIONAL]; - // Filter the returned entities based on AIP-160 standard. - string filter = 13; + // Optional. Results view based on AIP-157 + DatabaseEntityView view = 14 [(google.api.field_behavior) = OPTIONAL]; } // Response message for 'DescribeDatabaseEntities' request. @@ -1383,6 +1557,54 @@ message DescribeConversionWorkspaceRevisionsResponse { repeated ConversionWorkspace revisions = 1; } +// Request message for 'CreateMappingRule' command. +message CreateMappingRuleRequest { + // Required. The parent which owns this collection of mapping rules. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datamigration.googleapis.com/MappingRule" + } + ]; + + // Required. The ID of the rule to create. + string mapping_rule_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Represents a [mapping rule] + // (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules) + // object. + MappingRule mapping_rule = 3 [(google.api.field_behavior) = REQUIRED]; + + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. + // + // It is recommended to always set this value to a UUID. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 4; +} + +// Request message for 'DeleteMappingRule' request. +message DeleteMappingRuleRequest { + // Required. Name of the mapping rule resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datamigration.googleapis.com/MappingRule" + } + ]; + + // Optional. A unique ID used to identify the request. If the server receives + // two requests with the same ID, then the second request is ignored. + // + // It is recommended to always set this value to a UUID. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for 'FetchStaticIps' request. message FetchStaticIpsRequest { // Required. The resource name for the location for which static IPs should be @@ -1410,3 +1632,22 @@ message FetchStaticIpsResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// AIP-157 Partial Response view for Database Entity. +enum DatabaseEntityView { + // Unspecified view. Defaults to basic view. + DATABASE_ENTITY_VIEW_UNSPECIFIED = 0; + + // Default view. Does not return DDLs or Issues. + DATABASE_ENTITY_VIEW_BASIC = 1; + + // Return full entity details including mappings, ddl and issues. + DATABASE_ENTITY_VIEW_FULL = 2; + + // Top-most (Database, Schema) nodes which are returned contains summary + // details for their decendents such as the number of entities per type and + // issues rollups. When this view is used, only a single page of result is + // returned and the page_size property of the request is ignored. The + // returned page will only include the top-most node types. + DATABASE_ENTITY_VIEW_ROOT_SUMMARY = 3; +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto index 0b66a82de58f..313b9f3125d3 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto +++ b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto @@ -194,6 +194,12 @@ message OracleConnectionProfile { // Required. Database service for the Oracle connection. string database_service = 6 [(google.api.field_behavior) = REQUIRED]; + // SSL configuration for the connection to the source Oracle database. + // + // * Only `SERVER_ONLY` configuration is supported for Oracle SSL. + // * SSL is supported for Oracle versions 12 and above. + SslConfig ssl = 7; + // Connectivity options used to establish a connection to the database server. oneof connectivity { // Static Service IP connectivity. @@ -347,6 +353,9 @@ message CloudSqlSettings { // PostgreSQL 14. POSTGRES_14 = 17; + + // PostgreSQL 15. + POSTGRES_15 = 18; } // The availability type of the given Cloud SQL instance. @@ -361,6 +370,19 @@ message CloudSqlSettings { REGIONAL = 2; } + // The edition of the given Cloud SQL instance. + // Can be ENTERPRISE or ENTERPRISE_PLUS. + enum Edition { + // The instance did not specify the edition. + EDITION_UNSPECIFIED = 0; + + // The instance is an enterprise edition. + ENTERPRISE = 2; + + // The instance is an enterprise plus edition. + ENTERPRISE_PLUS = 3; + } + // The database engine type and version. SqlDatabaseVersion database_version = 1; @@ -450,6 +472,9 @@ message CloudSqlSettings { // region (it is highly available). SqlAvailabilityType availability_type = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The edition of the given Cloud SQL instance. + Edition edition = 19 [(google.api.field_behavior) = OPTIONAL]; } // Settings for creating an AlloyDB cluster. @@ -541,8 +566,8 @@ message AlloyDbSettings { // configuration is required. message StaticIpConnectivity {} -// Private Service Connect connectivity -// (https://cloud.google.com/vpc/docs/private-service-connect#service-attachments) +// [Private Service Connect +// connectivity](https://cloud.google.com/vpc/docs/private-service-connect#service-attachments) message PrivateServiceConnectConnectivity { // Required. A service attachment that exposes a database, and has the // following format: @@ -725,6 +750,27 @@ message MigrationJob { repeated DumpFlag dump_flags = 1; } + // Performance configuration definition. + message PerformanceConfig { + // Describes the parallelism level during initial dump. + enum DumpParallelLevel { + // Unknown dump parallel level. Will be defaulted to OPTIMAL. + DUMP_PARALLEL_LEVEL_UNSPECIFIED = 0; + + // Minimal parallel level. + MIN = 1; + + // Optimal parallel level. + OPTIMAL = 2; + + // Maximum parallel level. + MAX = 3; + } + + // Initial dump parallelism level. + DumpParallelLevel dump_parallel_level = 1; + } + // The name (URI) of this migration job resource, in the form of: // projects/{project}/locations/{location}/migrationJobs/{migrationJob}. string name = 1; @@ -830,6 +876,11 @@ message MigrationJob { // Each Cloud CMEK key has the following format: // projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] string cmek_key_name = 21; + + // Optional. Data dump parallelism settings used by the migration. + // Currently applicable only for MySQL to Cloud SQL for MySQL migrations only. + PerformanceConfig performance_config = 22 + [(google.api.field_behavior) = OPTIONAL]; } // A conversion workspace's version. @@ -996,6 +1047,9 @@ message MigrationJobVerificationError { // Migration is already running at the time of restart request. CANT_RESTART_RUNNING_MIGRATION = 21; + // The source already has a replication setup. + SOURCE_ALREADY_SETUP = 23; + // The source has tables with limited support. // E.g. PostgreSQL tables without primary keys. TABLES_WITH_LIMITED_SUPPORT = 24; @@ -1012,6 +1066,13 @@ message MigrationJobVerificationError { // The source DB size in Bytes exceeds a certain threshold. The migration // might require an increase of quota, or might not be supported. SOURCE_SIZE_EXCEEDS_THRESHOLD = 28; + + // The destination DB contains existing databases that are conflicting with + // those in the source DB. + EXISTING_CONFLICTING_DATABASES = 29; + + // Insufficient privilege to enable the parallelism configuration. + PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE = 30; } // Output only. An instance of ErrorCode specifying the error that occurred. diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/conversionworkspace_resources.proto b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/conversionworkspace_resources.proto index 332fd2c6d31a..6d5c6e625595 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/conversionworkspace_resources.proto +++ b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/conversionworkspace_resources.proto @@ -19,6 +19,7 @@ package google.cloud.clouddms.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/clouddms/v1/clouddms_resources.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -44,6 +45,8 @@ message ConversionWorkspace { option (google.api.resource) = { type: "datamigration.googleapis.com/ConversionWorkspace" pattern: "projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}" + plural: "conversionWorkspaces" + singular: "conversionWorkspace" }; // Full name of the workspace resource, in the form of: @@ -56,12 +59,13 @@ message ConversionWorkspace { // Required. The destination engine details. DatabaseEngineInfo destination = 3 [(google.api.field_behavior) = REQUIRED]; - // A generic list of settings for the workspace. + // Optional. A generic list of settings for the workspace. // The settings are database pair dependant and can indicate default behavior // for the mapping rules engine or turn on or off specific features. // Such examples can be: convert_foreign_key_to_interleave=true, // skip_triggers=false, ignore_non_table_synonyms=true - map global_settings = 4; + map global_settings = 4 + [(google.api.field_behavior) = OPTIONAL]; // Output only. Whether the workspace has uncommitted changes (changes which // were made after the workspace was committed). @@ -82,8 +86,8 @@ message ConversionWorkspace { google.protobuf.Timestamp update_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The display name for the workspace. - string display_name = 11; + // Optional. The display name for the workspace. + string display_name = 11 [(google.api.field_behavior) = OPTIONAL]; } // Execution log of a background job. @@ -103,32 +107,33 @@ message BackgroundJobLogEntry { // Details regarding a Seed background job. message SeedJobDetails { - // The connection profile which was used for the seed job. - string connection_profile = 1; + // Output only. The connection profile which was used for the seed job. + string connection_profile = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Details regarding an Import Rules background job. message ImportRulesJobDetails { - // File names used for the import rules job. - repeated string files = 1; + // Output only. File names used for the import rules job. + repeated string files = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The requested file format. - ImportRulesFileFormat file_format = 2; + // Output only. The requested file format. + ImportRulesFileFormat file_format = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Details regarding a Convert background job. message ConvertJobDetails { - // AIP-160 based filter used to specify the entities to convert - string filter = 1; + // Output only. AIP-160 based filter used to specify the entities to convert + string filter = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Details regarding an Apply background job. message ApplyJobDetails { - // The connection profile which was used for the apply job. - string connection_profile = 1; + // Output only. The connection profile which was used for the apply job. + string connection_profile = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // AIP-160 based filter used to specify the entities to apply - string filter = 2; + // Output only. AIP-160 based filter used to specify the entities to apply + string filter = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The background job log entry ID. @@ -143,32 +148,586 @@ message BackgroundJobLogEntry { // The timestamp when the background job was finished. google.protobuf.Timestamp finish_time = 4; - // Job completion state, i.e. the final state after the job completed. - JobCompletionState completion_state = 5; + // Output only. Job completion state, i.e. the final state after the job + // completed. + JobCompletionState completion_state = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Job completion comment, such as how many entities were seeded, + // Output only. Job completion comment, such as how many entities were seeded, // how many warnings were found during conversion, and similar information. - string completion_comment = 6; + string completion_comment = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Whether the client requested the conversion workspace to be committed after - // a successful completion of the job. - bool request_autocommit = 7; + // Output only. Whether the client requested the conversion workspace to be + // committed after a successful completion of the job. + bool request_autocommit = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; oneof job_details { - // Seed job details. - SeedJobDetails seed_job_details = 100; + // Output only. Seed job details. + SeedJobDetails seed_job_details = 100 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Import rules job details. + ImportRulesJobDetails import_rules_job_details = 101 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Convert job details. + ConvertJobDetails convert_job_details = 102 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Apply job details. + ApplyJobDetails apply_job_details = 103 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// A filter defining the entities that a mapping rule should be applied to. +// When more than one field is specified, the rule is applied only to +// entities which match all the fields. +message MappingRuleFilter { + // Optional. The rule should be applied to entities whose parent entity + // (fully qualified name) matches the given value. + // For example, if the rule applies to a table entity, the expected value + // should be a schema (schema). If the rule applies to a column or index + // entity, the expected value can be either a schema (schema) or a table + // (schema.table) + string parent_entity = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The rule should be applied to entities whose non-qualified name + // starts with the given prefix. + string entity_name_prefix = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The rule should be applied to entities whose non-qualified name + // ends with the given suffix. + string entity_name_suffix = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The rule should be applied to entities whose non-qualified name + // contains the given string. + string entity_name_contains = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The rule should be applied to specific entities defined by their + // fully qualified names. + repeated string entities = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Definition of a transformation that is to be applied to a group of entities +// in the source schema. Several such transformations can be applied to an +// entity sequentially to define the corresponding entity in the target schema. +message MappingRule { + option (google.api.resource) = { + type: "datamigration.googleapis.com/MappingRule" + pattern: "projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}/mappingRules/{mapping_rule}" + plural: "mappingRules" + singular: "mappingRule" + }; + + // The current mapping rule state such as enabled, disabled or deleted. + enum State { + // The state of the mapping rule is unknown. + STATE_UNSPECIFIED = 0; + + // The rule is enabled. + ENABLED = 1; - // Import rules job details. - ImportRulesJobDetails import_rules_job_details = 101; + // The rule is disabled. + DISABLED = 2; - // Convert job details. - ConvertJobDetails convert_job_details = 102; + // The rule is logically deleted. + DELETED = 3; + } + + // Full name of the mapping rule resource, in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}. + string name = 1; + + // Optional. A human readable name + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The mapping rule state + State state = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The rule scope + DatabaseEntityType rule_scope = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rule filter + MappingRuleFilter filter = 5 [(google.api.field_behavior) = REQUIRED]; - // Apply job details. - ApplyJobDetails apply_job_details = 103; + // Required. The order in which the rule is applied. Lower order rules are + // applied before higher value rules so they may end up being overridden. + int64 rule_order = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The revision ID of the mapping rule. + // A new revision is committed whenever the mapping rule is changed in any + // way. The format is an 8-character hexadecimal string. + string revision_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp revision_create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The rule specific details. + oneof details { + // Optional. Rule to specify how a single entity should be renamed. + SingleEntityRename single_entity_rename = 102 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify how multiple entities should be renamed. + MultiEntityRename multi_entity_rename = 103 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify how multiple entities should be relocated into + // a different schema. + EntityMove entity_move = 105 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify how a single column is converted. + SingleColumnChange single_column_change = 106 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify how multiple columns should be converted to a + // different data type. + MultiColumnDatatypeChange multi_column_data_type_change = 107 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify how the data contained in a column should be + // transformed (such as trimmed, rounded, etc) provided that the data meets + // certain criteria. + ConditionalColumnSetValue conditional_column_set_value = 108 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify how multiple tables should be converted with an + // additional rowid column. + ConvertRowIdToColumn convert_rowid_column = 114 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify the primary key for a table + SetTablePrimaryKey set_table_primary_key = 115 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify how a single package is converted. + SinglePackageChange single_package_change = 116 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to change the sql code for an entity, for example, + // function, procedure. + SourceSqlChange source_sql_change = 117 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule to specify the list of columns to include or exclude from + // a table. + FilterTableColumns filter_table_columns = 118 + [(google.api.field_behavior) = OPTIONAL]; } } +// Options to configure rule type SingleEntityRename. +// The rule is used to rename an entity. +// +// The rule filter field can refer to only one entity. +// +// The rule scope can be one of: Database, Schema, Table, Column, Constraint, +// Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT, +// Synonym +message SingleEntityRename { + // Required. The new name of the destination entity + string new_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Options to configure rule type MultiEntityRename. +// The rule is used to rename multiple entities. +// +// The rule filter field can refer to one or more entities. +// +// The rule scope can be one of: Database, Schema, Table, Column, Constraint, +// Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT +message MultiEntityRename { + // Optional. The pattern used to generate the new entity's name. This pattern + // must include the characters '{name}', which will be replaced with the name + // of the original entity. For example, the pattern 't_{name}' for an entity + // name jobs would be converted to 't_jobs'. + // + // If unspecified, the default value for this field is '{name}' + string new_name_pattern = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional transformation that can be done on the source entity + // name before it is being used by the new_name_pattern, for example lower + // case. If no transformation is desired, use NO_TRANSFORMATION + EntityNameTransformation source_name_transformation = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Options to configure rule type EntityMove. +// The rule is used to move an entity to a new schema. +// +// The rule filter field can refer to one or more entities. +// +// The rule scope can be one of: Table, Column, Constraint, Index, View, +// Function, Stored Procedure, Materialized View, Sequence, UDT +message EntityMove { + // Required. The new schema + string new_schema = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Options to configure rule type SingleColumnChange. +// The rule is used to change the properties of a column. +// +// The rule filter field can refer to one entity. +// +// The rule scope can be one of: Column. +// +// When using this rule, if a field is not specified than the destination +// column's configuration will be the same as the one in the source column.. +message SingleColumnChange { + // Optional. Column data type name. + string data_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Charset override - instead of table level charset. + string charset = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Collation override - instead of table level collation. + string collation = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Column length - e.g. 50 as in varchar (50) - when relevant. + int64 length = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Column precision - e.g. 8 as in double (8,2) - when relevant. + int32 precision = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Column scale - e.g. 2 as in double (8,2) - when relevant. + int32 scale = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2) + // - when relevant. + int32 fractional_seconds_precision = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Is the column of array type. + bool array = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The length of the array, only relevant if the column type is an + // array. + int32 array_length = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Is the column nullable. + bool nullable = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Is the column auto-generated/identity. + bool auto_generated = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Is the column a UDT (User-defined Type). + bool udt = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom engine specific features. + google.protobuf.Struct custom_features = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the list of values allowed in the column. + repeated string set_values = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Comment associated with the column. + string comment = 15 [(google.api.field_behavior) = OPTIONAL]; +} + +// Options to configure rule type MultiColumnDatatypeChange. +// The rule is used to change the data type and associated properties of +// multiple columns at once. +// +// The rule filter field can refer to one or more entities. +// +// The rule scope can be one of:Column. +// +// This rule requires additional filters to be specified beyond the basic rule +// filter field, which is the source data type, but the rule supports additional +// filtering capabilities such as the minimum and maximum field length. All +// additional filters which are specified are required to be met in order for +// the rule to be applied (logical AND between the fields). +message MultiColumnDatatypeChange { + // Required. Filter on source data type. + string source_data_type_filter = 1 [(google.api.field_behavior) = REQUIRED]; + + // Filter on source column parameters. + oneof source_filter { + // Optional. Filter for text-based data types like varchar. + SourceTextFilter source_text_filter = 100 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter for fixed point number data types such as + // NUMERIC/NUMBER. + SourceNumericFilter source_numeric_filter = 101 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. New data type. + string new_data_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Column length - e.g. varchar (50) - if not specified and relevant + // uses the source column length. + int64 override_length = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Column scale - when relevant - if not specified and relevant + // uses the source column scale. + int32 override_scale = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Column precision - when relevant - if not specified and relevant + // uses the source column precision. + int32 override_precision = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Column fractional seconds precision - used only for timestamp + // based datatypes - if not specified and relevant uses the source column + // fractional seconds precision. + int32 override_fractional_seconds_precision = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom engine specific features. + google.protobuf.Struct custom_features = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Filter for text-based data types like varchar. +message SourceTextFilter { + // Optional. The filter will match columns with length greater than or equal + // to this number. + int64 source_min_length_filter = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter will match columns with length smaller than or equal + // to this number. + int64 source_max_length_filter = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Filter for fixed point number data types such as NUMERIC/NUMBER +message SourceNumericFilter { + // Optional. The filter will match columns with scale greater than or equal to + // this number. + int32 source_min_scale_filter = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter will match columns with scale smaller than or equal to + // this number. + int32 source_max_scale_filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter will match columns with precision greater than or + // equal to this number. + int32 source_min_precision_filter = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter will match columns with precision smaller than or + // equal to this number. + int32 source_max_precision_filter = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Enum to set the option defining the datatypes numeric filter has + // to be applied to + NumericFilterOption numeric_filter_option = 5 + [(google.api.field_behavior) = REQUIRED]; +} + +// Options to configure rule type ConditionalColumnSetValue. +// The rule is used to transform the data which is being replicated/migrated. +// +// The rule filter field can refer to one or more entities. +// +// The rule scope can be one of: Column. +message ConditionalColumnSetValue { + oneof source_filter { + // Optional. Optional filter on source column length. Used for text based + // data types like varchar. + SourceTextFilter source_text_filter = 100 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filter on source column precision and scale. Used for + // fixed point numbers such as NUMERIC/NUMBER data types. + SourceNumericFilter source_numeric_filter = 101 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Description of data transformation during migration. + ValueTransformation value_transformation = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Custom engine specific features. + google.protobuf.Struct custom_features = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Description of data transformation during migration as part of the +// ConditionalColumnSetValue. +message ValueTransformation { + oneof filter { + // Optional. Value is null + google.protobuf.Empty is_null = 100 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Value is found in the specified list. + ValueListFilter value_list = 101 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter on relation between source value and compare value of + // type integer. + IntComparisonFilter int_comparison = 102 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter on relation between source value and compare value of + // type double. + DoubleComparisonFilter double_comparison = 103 + [(google.api.field_behavior) = OPTIONAL]; + } + + oneof action { + // Optional. Set to null + google.protobuf.Empty assign_null = 200 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set to a specific value (value is converted to fit the target + // data type) + AssignSpecificValue assign_specific_value = 201 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set to min_value - if integer or numeric, will use + // int.minvalue, etc + google.protobuf.Empty assign_min_value = 202 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set to max_value - if integer or numeric, will use + // int.maxvalue, etc + google.protobuf.Empty assign_max_value = 203 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Allows the data to change scale + RoundToScale round_scale = 204 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Applies a hash function on the data + ApplyHash apply_hash = 205 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Options to configure rule type ConvertROWIDToColumn. +// The rule is used to add column rowid to destination tables based on an Oracle +// rowid function/property. +// +// The rule filter field can refer to one or more entities. +// +// The rule scope can be one of: Table. +// +// This rule requires additional filter to be specified beyond the basic rule +// filter field, which is whether or not to work on tables which already have a +// primary key defined. +message ConvertRowIdToColumn { + // Required. Only work on tables without primary key defined + bool only_if_no_primary_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Options to configure rule type SetTablePrimaryKey. +// The rule is used to specify the columns and name to configure/alter the +// primary key of a table. +// +// The rule filter field can refer to one entity. +// +// The rule scope can be one of: Table. +message SetTablePrimaryKey { + // Required. List of column names for the primary key + repeated string primary_key_columns = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name for the primary key + string primary_key = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Options to configure rule type SinglePackageChange. +// The rule is used to alter the sql code for a package entities. +// +// The rule filter field can refer to one entity. +// +// The rule scope can be: Package +message SinglePackageChange { + // Optional. Sql code for package description + string package_description = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sql code for package body + string package_body = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Options to configure rule type SourceSqlChange. +// The rule is used to alter the sql code for database entities. +// +// The rule filter field can refer to one entity. +// +// The rule scope can be: StoredProcedure, Function, Trigger, View +message SourceSqlChange { + // Required. Sql code for source (stored procedure, function, trigger or view) + string sql_code = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Options to configure rule type FilterTableColumns. +// The rule is used to filter the list of columns to include or exclude from a +// table. +// +// The rule filter field can refer to one entity. +// +// The rule scope can be: Table +// +// Only one of the two lists can be specified for the rule. +message FilterTableColumns { + // Optional. List of columns to be included for a particular table. + repeated string include_columns = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of columns to be excluded for a particular table. + repeated string exclude_columns = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of values to filter by in ConditionalColumnSetValue +message ValueListFilter { + // Required. Indicates whether the filter matches rows with values that are + // present in the list or those with values not present in it. + ValuePresentInList value_present_list = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list to be used to filter by + repeated string values = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Whether to ignore case when filtering by values. Defaults to + // false + bool ignore_case = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Filter based on relation between source value and compare value of type +// integer in ConditionalColumnSetValue +message IntComparisonFilter { + // Required. Relation between source value and compare value + ValueComparison value_comparison = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Integer compare value to be used + int64 value = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Filter based on relation between source +// value and compare value of type double in ConditionalColumnSetValue +message DoubleComparisonFilter { + // Required. Relation between source value and compare value + ValueComparison value_comparison = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Double compare value to be used + double value = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Set to a specific value (value is converted to fit the target data type) +message AssignSpecificValue { + // Required. Specific value to be assigned + string value = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Apply a hash function on the value. +message ApplyHash { + oneof hash_function { + // Optional. Generate UUID from the data's byte array + google.protobuf.Empty uuid_from_bytes = 100 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// This allows the data to change scale, for example if the source is 2 digits +// after the decimal point, specify round to scale value = 2. If for example the +// value needs to be converted to an integer, use round to scale value = 0. +message RoundToScale { + // Required. Scale value to be used + int32 scale = 1 [(google.api.field_behavior) = REQUIRED]; +} + // The base entity type for all the database related entities. // The message contains the entity name, the name of its parent, the entity // type, and the specific details per entity type. @@ -208,8 +767,19 @@ message DatabaseEntity { // Destination entities will have no mapping details. repeated EntityMapping mappings = 5; + // Details about the entity DDL script. Multiple DDL scripts are provided for + // child entities such as a table entity will have one DDL for the table with + // additional DDLs for each index, constraint and such. + repeated EntityDdl entity_ddl = 6; + + // Details about the various issues found for the entity. + repeated EntityIssue issues = 7; + // The specific body for each entity type. oneof entity_body { + // Database. + DatabaseInstanceEntity database = 101; + // Schema. SchemaEntity schema = 102; @@ -233,9 +803,21 @@ message DatabaseEntity { // Package. PackageEntity database_package = 109; + + // UDT. + UDTEntity udt = 110; + + // Materialized view. + MaterializedViewEntity materialized_view = 111; } } +// DatabaseInstance acts as a parent entity to other database entities. +message DatabaseInstanceEntity { + // Custom engine specific features. + google.protobuf.Struct custom_features = 1; +} + // Schema typically has no parent entity, but can have a parent entity // DatabaseInstance (for database engines which support it). For some database // engines, the terms schema and user can be used interchangeably when they @@ -458,6 +1040,15 @@ message FunctionEntity { google.protobuf.Struct custom_features = 2; } +// MaterializedView's parent is a schema. +message MaterializedViewEntity { + // The SQL code which creates the view. + string sql_code = 1; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 2; +} + // Synonym's parent is a schema. message SynonymEntity { // The name of the entity for which the synonym is being created (the source). @@ -484,6 +1075,18 @@ message PackageEntity { google.protobuf.Struct custom_features = 3; } +// UDT's parent is a schema. +message UDTEntity { + // The SQL code which creates the udt. + string udt_sql_code = 1; + + // The SQL code which creates the udt body. + string udt_body = 2; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 3; +} + // Details of the mappings of a database entity. message EntityMapping { // Source entity full name. @@ -522,6 +1125,109 @@ message EntityMappingLogEntry { string mapping_comment = 3; } +// A single DDL statement for a specific entity +message EntityDdl { + // Type of DDL (Create, Alter). + string ddl_type = 1; + + // The name of the database entity the ddl refers to. + string entity = 2; + + // The actual ddl code. + string ddl = 3; + + // The entity type (if the DDL is for a sub entity). + DatabaseEntityType entity_type = 4; + + // EntityIssues found for this ddl. + repeated string issue_id = 100; +} + +// Issue related to the entity. +message EntityIssue { + // Type of issue. + enum IssueType { + // Unspecified issue type. + ISSUE_TYPE_UNSPECIFIED = 0; + + // Issue originated from the DDL + ISSUE_TYPE_DDL = 1; + + // Issue originated during the apply process + ISSUE_TYPE_APPLY = 2; + + // Issue originated during the convert process + ISSUE_TYPE_CONVERT = 3; + } + + // Severity of issue. + enum IssueSeverity { + // Unspecified issue severity + ISSUE_SEVERITY_UNSPECIFIED = 0; + + // Info + ISSUE_SEVERITY_INFO = 1; + + // Warning + ISSUE_SEVERITY_WARNING = 2; + + // Error + ISSUE_SEVERITY_ERROR = 3; + } + + // Issue position. + message Position { + // Issue line number + int32 line = 1; + + // Issue column number + int32 column = 2; + + // Issue offset + int32 offset = 3; + + // Issue length + int32 length = 4; + } + + // Unique Issue ID. + string id = 1; + + // The type of the issue. + IssueType type = 2; + + // Severity of the issue + IssueSeverity severity = 3; + + // Issue detailed message + string message = 4; + + // Error/Warning code + string code = 5; + + // The ddl which caused the issue, if relevant. + optional string ddl = 6; + + // The position of the issue found, if relevant. + optional Position position = 7; + + // The entity type (if the DDL is for a sub entity). + DatabaseEntityType entity_type = 8; +} + +// Enum used by ValueListFilter to indicate whether the source value is in the +// supplied list +enum ValuePresentInList { + // Value present in list unspecified + VALUE_PRESENT_IN_LIST_UNSPECIFIED = 0; + + // If the source value is in the supplied list at value_list + VALUE_PRESENT_IN_LIST_IF_VALUE_LIST = 1; + + // If the source value is not in the supplied list at value_list + VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST = 2; +} + // The type of database entities supported, enum DatabaseEntityType { // Unspecified database entity type. @@ -573,6 +1279,24 @@ enum DatabaseEntityType { DATABASE_ENTITY_TYPE_DATABASE = 15; } +// Entity Name Transformation Types +enum EntityNameTransformation { + // Entity name transformation unspecified. + ENTITY_NAME_TRANSFORMATION_UNSPECIFIED = 0; + + // No transformation. + ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION = 1; + + // Transform to lower case. + ENTITY_NAME_TRANSFORMATION_LOWER_CASE = 2; + + // Transform to upper case. + ENTITY_NAME_TRANSFORMATION_UPPER_CASE = 3; + + // Transform to capitalized case. + ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE = 4; +} + // The types of jobs that can be executed in the background. enum BackgroundJobType { // Unspecified background job type. @@ -604,3 +1328,39 @@ enum ImportRulesFileFormat { // Ora2Pg configuration file. IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE = 2; } + +// Enum used by IntComparisonFilter and DoubleComparisonFilter to indicate the +// relation between source value and compare value. +enum ValueComparison { + // Value comparison unspecified. + VALUE_COMPARISON_UNSPECIFIED = 0; + + // Value is smaller than the Compare value. + VALUE_COMPARISON_IF_VALUE_SMALLER_THAN = 1; + + // Value is smaller or equal than the Compare value. + VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN = 2; + + // Value is larger than the Compare value. + VALUE_COMPARISON_IF_VALUE_LARGER_THAN = 3; + + // Value is larger or equal than the Compare value. + VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN = 4; +} + +// Specifies the columns on which numeric filter needs to be applied. +enum NumericFilterOption { + // Numeric filter option unspecified + NUMERIC_FILTER_OPTION_UNSPECIFIED = 0; + + // Numeric filter option that matches all numeric columns. + NUMERIC_FILTER_OPTION_ALL = 1; + + // Numeric filter option that matches columns having numeric datatypes with + // specified precision and scale within the limited range of filter. + NUMERIC_FILTER_OPTION_LIMIT = 2; + + // Numeric filter option that matches only the numeric columns with no + // precision and scale specified. + NUMERIC_FILTER_OPTION_LIMITLESS = 3; +} diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspace.java index d416af1d57c6..34be5b3ca4cb 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspace.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspace.java @@ -43,6 +43,8 @@ public static void asyncApplyConversionWorkspace() throws Exception { ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") .toString()) .setFilter("filter-1274492040") + .setDryRun(true) + .setAutoCommit(true) .build(); ApiFuture future = dataMigrationServiceClient.applyConversionWorkspaceCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspaceLRO.java index 8321eaeb2778..3e7e32803339 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspaceLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspaceLRO.java @@ -44,6 +44,8 @@ public static void asyncApplyConversionWorkspaceLRO() throws Exception { ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") .toString()) .setFilter("filter-1274492040") + .setDryRun(true) + .setAutoCommit(true) .build(); OperationFuture future = dataMigrationServiceClient diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/SyncApplyConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/SyncApplyConversionWorkspace.java index 24fac4d7ac99..7fe00723fd20 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/SyncApplyConversionWorkspace.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/SyncApplyConversionWorkspace.java @@ -42,6 +42,8 @@ public static void syncApplyConversionWorkspace() throws Exception { ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") .toString()) .setFilter("filter-1274492040") + .setDryRun(true) + .setAutoCommit(true) .build(); ConversionWorkspace response = dataMigrationServiceClient.applyConversionWorkspaceAsync(request).get(); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspace.java index 096c375440e1..17633b1c894f 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspace.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspace.java @@ -44,6 +44,7 @@ public static void asyncConvertConversionWorkspace() throws Exception { .toString()) .setAutoCommit(true) .setFilter("filter-1274492040") + .setConvertFullPath(true) .build(); ApiFuture future = dataMigrationServiceClient.convertConversionWorkspaceCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspaceLRO.java index 743c2a877b5f..5dc642608fd0 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspaceLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspaceLRO.java @@ -45,6 +45,7 @@ public static void asyncConvertConversionWorkspaceLRO() throws Exception { .toString()) .setAutoCommit(true) .setFilter("filter-1274492040") + .setConvertFullPath(true) .build(); OperationFuture future = dataMigrationServiceClient diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/SyncConvertConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/SyncConvertConversionWorkspace.java index b38df4b7ce83..d187c7e9090b 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/SyncConvertConversionWorkspace.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/SyncConvertConversionWorkspace.java @@ -43,6 +43,7 @@ public static void syncConvertConversionWorkspace() throws Exception { .toString()) .setAutoCommit(true) .setFilter("filter-1274492040") + .setConvertFullPath(true) .build(); ConversionWorkspace response = dataMigrationServiceClient.convertConversionWorkspaceAsync(request).get(); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java index 04190f54087b..67212dd40d0e 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java @@ -19,9 +19,9 @@ // [START datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_async] import com.google.api.core.ApiFuture; import com.google.cloud.clouddms.v1.ConnectionProfile; -import com.google.cloud.clouddms.v1.ConnectionProfileName; import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; import com.google.longrunning.Operation; public class AsyncCreateConnectionProfile { @@ -40,9 +40,7 @@ public static void asyncCreateConnectionProfile() throws Exception { DataMigrationServiceClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() - .setParent( - ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setConnectionProfileId("connectionProfileId597575526") .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java index b33fc8ceeed6..417b4ec200af 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java @@ -19,9 +19,9 @@ // [START datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_LRO_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.clouddms.v1.ConnectionProfile; -import com.google.cloud.clouddms.v1.ConnectionProfileName; import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; import com.google.cloud.clouddms.v1.OperationMetadata; public class AsyncCreateConnectionProfileLRO { @@ -40,9 +40,7 @@ public static void asyncCreateConnectionProfileLRO() throws Exception { DataMigrationServiceClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() - .setParent( - ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setConnectionProfileId("connectionProfileId597575526") .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java index 00ab5cadcaa8..00758f9a2213 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java @@ -18,9 +18,9 @@ // [START datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_sync] import com.google.cloud.clouddms.v1.ConnectionProfile; -import com.google.cloud.clouddms.v1.ConnectionProfileName; import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; public class SyncCreateConnectionProfile { @@ -38,9 +38,7 @@ public static void syncCreateConnectionProfile() throws Exception { DataMigrationServiceClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() - .setParent( - ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") - .toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setConnectionProfileId("connectionProfileId597575526") .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java similarity index 76% rename from java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java rename to java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java index 82f0236f86fa..a305a8d17880 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java @@ -16,18 +16,18 @@ package com.google.cloud.clouddms.v1.samples; -// [START datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_ConnectionprofilenameConnectionprofileString_sync] +// [START datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_LocationnameConnectionprofileString_sync] import com.google.cloud.clouddms.v1.ConnectionProfile; -import com.google.cloud.clouddms.v1.ConnectionProfileName; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; -public class SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString { +public class SyncCreateConnectionProfileLocationnameConnectionprofileString { public static void main(String[] args) throws Exception { - syncCreateConnectionProfileConnectionprofilenameConnectionprofileString(); + syncCreateConnectionProfileLocationnameConnectionprofileString(); } - public static void syncCreateConnectionProfileConnectionprofilenameConnectionprofileString() + public static void syncCreateConnectionProfileLocationnameConnectionprofileString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: @@ -36,8 +36,7 @@ public static void syncCreateConnectionProfileConnectionprofilenameConnectionpro // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.create()) { - ConnectionProfileName parent = - ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); String connectionProfileId = "connectionProfileId597575526"; ConnectionProfile response = @@ -47,4 +46,4 @@ public static void syncCreateConnectionProfileConnectionprofilenameConnectionpro } } } -// [END datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_ConnectionprofilenameConnectionprofileString_sync] +// [END datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_LocationnameConnectionprofileString_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java index 5672c635948c..4f2f7eabe62e 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java @@ -18,8 +18,8 @@ // [START datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_StringConnectionprofileString_sync] import com.google.cloud.clouddms.v1.ConnectionProfile; -import com.google.cloud.clouddms.v1.ConnectionProfileName; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; public class SyncCreateConnectionProfileStringConnectionprofileString { @@ -35,8 +35,7 @@ public static void syncCreateConnectionProfileStringConnectionprofileString() th // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.create()) { - String parent = - ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); String connectionProfileId = "connectionProfileId597575526"; ConnectionProfile response = diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/AsyncCreateMappingRule.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/AsyncCreateMappingRule.java new file mode 100644 index 000000000000..2ec1448f14a4 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/AsyncCreateMappingRule.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateMappingRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.CreateMappingRuleRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; + +public class AsyncCreateMappingRule { + + public static void main(String[] args) throws Exception { + asyncCreateMappingRule(); + } + + public static void asyncCreateMappingRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateMappingRuleRequest request = + CreateMappingRuleRequest.newBuilder() + .setParent( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setMappingRuleId("mappingRuleId-900824155") + .setMappingRule(MappingRule.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.createMappingRuleCallable().futureCall(request); + // Do something. + MappingRule response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateMappingRule_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRule.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRule.java new file mode 100644 index 000000000000..fc267354abd5 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRule.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateMappingRule_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.CreateMappingRuleRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; + +public class SyncCreateMappingRule { + + public static void main(String[] args) throws Exception { + syncCreateMappingRule(); + } + + public static void syncCreateMappingRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateMappingRuleRequest request = + CreateMappingRuleRequest.newBuilder() + .setParent( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setMappingRuleId("mappingRuleId-900824155") + .setMappingRule(MappingRule.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MappingRule response = dataMigrationServiceClient.createMappingRule(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateMappingRule_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRuleConversionworkspacenameMappingruleString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRuleConversionworkspacenameMappingruleString.java new file mode 100644 index 000000000000..85fe4e7bde84 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRuleConversionworkspacenameMappingruleString.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateMappingRule_ConversionworkspacenameMappingruleString_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; + +public class SyncCreateMappingRuleConversionworkspacenameMappingruleString { + + public static void main(String[] args) throws Exception { + syncCreateMappingRuleConversionworkspacenameMappingruleString(); + } + + public static void syncCreateMappingRuleConversionworkspacenameMappingruleString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConversionWorkspaceName parent = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + MappingRule mappingRule = MappingRule.newBuilder().build(); + String mappingRuleId = "mappingRuleId-900824155"; + MappingRule response = + dataMigrationServiceClient.createMappingRule(parent, mappingRule, mappingRuleId); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateMappingRule_ConversionworkspacenameMappingruleString_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRuleStringMappingruleString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRuleStringMappingruleString.java new file mode 100644 index 000000000000..49ea081697b1 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createmappingrule/SyncCreateMappingRuleStringMappingruleString.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateMappingRule_StringMappingruleString_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; + +public class SyncCreateMappingRuleStringMappingruleString { + + public static void main(String[] args) throws Exception { + syncCreateMappingRuleStringMappingruleString(); + } + + public static void syncCreateMappingRuleStringMappingruleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString(); + MappingRule mappingRule = MappingRule.newBuilder().build(); + String mappingRuleId = "mappingRuleId-900824155"; + MappingRule response = + dataMigrationServiceClient.createMappingRule(parent, mappingRule, mappingRuleId); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateMappingRule_StringMappingruleString_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspace.java index 2a26fed18200..e4529040e285 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspace.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspace.java @@ -43,6 +43,7 @@ public static void asyncDeleteConversionWorkspace() throws Exception { ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") .toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); ApiFuture future = dataMigrationServiceClient.deleteConversionWorkspaceCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspaceLRO.java index 07db53afcb56..f5d8ed5d9682 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspaceLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspaceLRO.java @@ -44,6 +44,7 @@ public static void asyncDeleteConversionWorkspaceLRO() throws Exception { ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") .toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); OperationFuture future = dataMigrationServiceClient diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspace.java index 01c6670ab9c6..f1350b9992a7 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspace.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspace.java @@ -42,6 +42,7 @@ public static void syncDeleteConversionWorkspace() throws Exception { ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") .toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); dataMigrationServiceClient.deleteConversionWorkspaceAsync(request).get(); } diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/AsyncDeleteMappingRule.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/AsyncDeleteMappingRule.java new file mode 100644 index 000000000000..45bf03fdbb83 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/AsyncDeleteMappingRule.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteMappingRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteMappingRuleRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteMappingRule { + + public static void main(String[] args) throws Exception { + asyncDeleteMappingRule(); + } + + public static void asyncDeleteMappingRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteMappingRuleRequest request = + DeleteMappingRuleRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.deleteMappingRuleCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteMappingRule_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRule.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRule.java new file mode 100644 index 000000000000..dbbc850c881d --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRule.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteMappingRule_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteMappingRuleRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteMappingRule { + + public static void main(String[] args) throws Exception { + syncDeleteMappingRule(); + } + + public static void syncDeleteMappingRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteMappingRuleRequest request = + DeleteMappingRuleRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + dataMigrationServiceClient.deleteMappingRule(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteMappingRule_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRuleConversionworkspacename.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRuleConversionworkspacename.java new file mode 100644 index 000000000000..9c0f887493e2 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRuleConversionworkspacename.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteMappingRule_Conversionworkspacename_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMappingRuleConversionworkspacename { + + public static void main(String[] args) throws Exception { + syncDeleteMappingRuleConversionworkspacename(); + } + + public static void syncDeleteMappingRuleConversionworkspacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConversionWorkspaceName name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + dataMigrationServiceClient.deleteMappingRule(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteMappingRule_Conversionworkspacename_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRuleString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRuleString.java new file mode 100644 index 000000000000..16c23c128c88 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deletemappingrule/SyncDeleteMappingRuleString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteMappingRule_String_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMappingRuleString { + + public static void main(String[] args) throws Exception { + syncDeleteMappingRuleString(); + } + + public static void syncDeleteMappingRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString(); + dataMigrationServiceClient.deleteMappingRule(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteMappingRule_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntities.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntities.java index 79622170f16b..ec06053dd062 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntities.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntities.java @@ -21,6 +21,7 @@ import com.google.cloud.clouddms.v1.ConversionWorkspaceName; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; import com.google.cloud.clouddms.v1.DatabaseEntity; +import com.google.cloud.clouddms.v1.DatabaseEntityView; import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; public class AsyncDescribeDatabaseEntities { @@ -47,6 +48,7 @@ public static void asyncDescribeDatabaseEntities() throws Exception { .setUncommitted(true) .setCommitId("commitId-602292046") .setFilter("filter-1274492040") + .setView(DatabaseEntityView.forNumber(0)) .build(); ApiFuture future = dataMigrationServiceClient.describeDatabaseEntitiesPagedCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntitiesPaged.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntitiesPaged.java index e7cba86dbb59..984220c6c4c8 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntitiesPaged.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntitiesPaged.java @@ -20,6 +20,7 @@ import com.google.cloud.clouddms.v1.ConversionWorkspaceName; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; import com.google.cloud.clouddms.v1.DatabaseEntity; +import com.google.cloud.clouddms.v1.DatabaseEntityView; import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse; import com.google.common.base.Strings; @@ -48,6 +49,7 @@ public static void asyncDescribeDatabaseEntitiesPaged() throws Exception { .setUncommitted(true) .setCommitId("commitId-602292046") .setFilter("filter-1274492040") + .setView(DatabaseEntityView.forNumber(0)) .build(); while (true) { DescribeDatabaseEntitiesResponse response = diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/SyncDescribeDatabaseEntities.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/SyncDescribeDatabaseEntities.java index d91aecc52f6c..9a03c14e49b1 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/SyncDescribeDatabaseEntities.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/SyncDescribeDatabaseEntities.java @@ -20,6 +20,7 @@ import com.google.cloud.clouddms.v1.ConversionWorkspaceName; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; import com.google.cloud.clouddms.v1.DatabaseEntity; +import com.google.cloud.clouddms.v1.DatabaseEntityView; import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; public class SyncDescribeDatabaseEntities { @@ -46,6 +47,7 @@ public static void syncDescribeDatabaseEntities() throws Exception { .setUncommitted(true) .setCommitId("commitId-602292046") .setFilter("filter-1274492040") + .setView(DatabaseEntityView.forNumber(0)) .build(); for (DatabaseEntity element : dataMigrationServiceClient.describeDatabaseEntities(request).iterateAll()) { diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/generatetcpproxyscript/AsyncGenerateTcpProxyScript.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/generatetcpproxyscript/AsyncGenerateTcpProxyScript.java new file mode 100644 index 000000000000..911d5e26bcb3 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/generatetcpproxyscript/AsyncGenerateTcpProxyScript.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GenerateTcpProxyScript_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.TcpProxyScript; + +public class AsyncGenerateTcpProxyScript { + + public static void main(String[] args) throws Exception { + asyncGenerateTcpProxyScript(); + } + + public static void asyncGenerateTcpProxyScript() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + 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(); + ApiFuture future = + dataMigrationServiceClient.generateTcpProxyScriptCallable().futureCall(request); + // Do something. + TcpProxyScript response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GenerateTcpProxyScript_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/generatetcpproxyscript/SyncGenerateTcpProxyScript.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/generatetcpproxyscript/SyncGenerateTcpProxyScript.java new file mode 100644 index 000000000000..408bad07db4b --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/generatetcpproxyscript/SyncGenerateTcpProxyScript.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GenerateTcpProxyScript_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest; +import com.google.cloud.clouddms.v1.MigrationJobName; +import com.google.cloud.clouddms.v1.TcpProxyScript; + +public class SyncGenerateTcpProxyScript { + + public static void main(String[] args) throws Exception { + syncGenerateTcpProxyScript(); + } + + public static void syncGenerateTcpProxyScript() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + 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 response = dataMigrationServiceClient.generateTcpProxyScript(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GenerateTcpProxyScript_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/AsyncGetMappingRule.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/AsyncGetMappingRule.java new file mode 100644 index 000000000000..424eb7867727 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/AsyncGetMappingRule.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetMappingRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetMappingRuleRequest; +import com.google.cloud.clouddms.v1.MappingRule; +import com.google.cloud.clouddms.v1.MappingRuleName; + +public class AsyncGetMappingRule { + + public static void main(String[] args) throws Exception { + asyncGetMappingRule(); + } + + public static void asyncGetMappingRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + 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(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetMappingRule_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRule.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRule.java new file mode 100644 index 000000000000..9a23d9956050 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRule.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetMappingRule_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetMappingRuleRequest; +import com.google.cloud.clouddms.v1.MappingRule; +import com.google.cloud.clouddms.v1.MappingRuleName; + +public class SyncGetMappingRule { + + public static void main(String[] args) throws Exception { + syncGetMappingRule(); + } + + public static void syncGetMappingRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetMappingRuleRequest request = + GetMappingRuleRequest.newBuilder() + .setName( + MappingRuleName.of( + "[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]") + .toString()) + .build(); + MappingRule response = dataMigrationServiceClient.getMappingRule(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetMappingRule_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRuleMappingrulename.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRuleMappingrulename.java new file mode 100644 index 000000000000..f9b53c631455 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRuleMappingrulename.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetMappingRule_Mappingrulename_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; +import com.google.cloud.clouddms.v1.MappingRuleName; + +public class SyncGetMappingRuleMappingrulename { + + public static void main(String[] args) throws Exception { + syncGetMappingRuleMappingrulename(); + } + + public static void syncGetMappingRuleMappingrulename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + MappingRuleName name = + MappingRuleName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]"); + MappingRule response = dataMigrationServiceClient.getMappingRule(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetMappingRule_Mappingrulename_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRuleString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRuleString.java new file mode 100644 index 000000000000..8932b0a2d681 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getmappingrule/SyncGetMappingRuleString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetMappingRule_String_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; +import com.google.cloud.clouddms.v1.MappingRuleName; + +public class SyncGetMappingRuleString { + + public static void main(String[] args) throws Exception { + syncGetMappingRuleString(); + } + + public static void syncGetMappingRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + MappingRuleName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]") + .toString(); + MappingRule response = dataMigrationServiceClient.getMappingRule(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetMappingRule_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/AsyncListMappingRules.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/AsyncListMappingRules.java new file mode 100644 index 000000000000..5636f8e36de9 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/AsyncListMappingRules.java @@ -0,0 +1,57 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListMappingRules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListMappingRulesRequest; +import com.google.cloud.clouddms.v1.MappingRule; + +public class AsyncListMappingRules { + + public static void main(String[] args) throws Exception { + asyncListMappingRules(); + } + + public static void asyncListMappingRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + 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); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListMappingRules_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/AsyncListMappingRulesPaged.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/AsyncListMappingRulesPaged.java new file mode 100644 index 000000000000..ef79a5ac83d8 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/AsyncListMappingRulesPaged.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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListMappingRules_Paged_async] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListMappingRulesRequest; +import com.google.cloud.clouddms.v1.ListMappingRulesResponse; +import com.google.cloud.clouddms.v1.MappingRule; +import com.google.common.base.Strings; + +public class AsyncListMappingRulesPaged { + + public static void main(String[] args) throws Exception { + asyncListMappingRulesPaged(); + } + + public static void asyncListMappingRulesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + 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; + } + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListMappingRules_Paged_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRules.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRules.java new file mode 100644 index 000000000000..6f750d62a63a --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRules.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListMappingRules_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListMappingRulesRequest; +import com.google.cloud.clouddms.v1.MappingRule; + +public class SyncListMappingRules { + + public static void main(String[] args) throws Exception { + syncListMappingRules(); + } + + public static void syncListMappingRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + 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); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListMappingRules_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRulesConversionworkspacename.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRulesConversionworkspacename.java new file mode 100644 index 000000000000..088e4ba8cff8 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRulesConversionworkspacename.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListMappingRules_Conversionworkspacename_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; + +public class SyncListMappingRulesConversionworkspacename { + + public static void main(String[] args) throws Exception { + syncListMappingRulesConversionworkspacename(); + } + + public static void syncListMappingRulesConversionworkspacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConversionWorkspaceName parent = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + for (MappingRule element : dataMigrationServiceClient.listMappingRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListMappingRules_Conversionworkspacename_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRulesString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRulesString.java new file mode 100644 index 000000000000..63ed502323be --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listmappingrules/SyncListMappingRulesString.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListMappingRules_String_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MappingRule; + +public class SyncListMappingRulesString { + + public static void main(String[] args) throws Exception { + syncListMappingRulesString(); + } + + public static void syncListMappingRulesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString(); + for (MappingRule element : dataMigrationServiceClient.listMappingRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListMappingRules_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJob.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJob.java index 0bf97fda5ae5..eb2b1f3574f2 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJob.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJob.java @@ -40,6 +40,7 @@ public static void asyncRestartMigrationJob() throws Exception { RestartMigrationJobRequest request = RestartMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setSkipValidation(true) .build(); ApiFuture future = dataMigrationServiceClient.restartMigrationJobCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJobLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJobLRO.java index 13ba7c9967fc..43ca40d5cfb6 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJobLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/AsyncRestartMigrationJobLRO.java @@ -41,6 +41,7 @@ public static void asyncRestartMigrationJobLRO() throws Exception { RestartMigrationJobRequest request = RestartMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setSkipValidation(true) .build(); OperationFuture future = dataMigrationServiceClient.restartMigrationJobOperationCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/SyncRestartMigrationJob.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/SyncRestartMigrationJob.java index 4b26e62b1f85..600a3a1ad8f1 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/SyncRestartMigrationJob.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/restartmigrationjob/SyncRestartMigrationJob.java @@ -39,6 +39,7 @@ public static void syncRestartMigrationJob() throws Exception { RestartMigrationJobRequest request = RestartMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setSkipValidation(true) .build(); MigrationJob response = dataMigrationServiceClient.restartMigrationJobAsync(request).get(); } diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJob.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJob.java index 482da0c7f23d..79c044b0bcbd 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJob.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJob.java @@ -40,6 +40,7 @@ public static void asyncStartMigrationJob() throws Exception { StartMigrationJobRequest request = StartMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setSkipValidation(true) .build(); ApiFuture future = dataMigrationServiceClient.startMigrationJobCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJobLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJobLRO.java index 10c074d7e2ad..3a3883c18bf6 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJobLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/AsyncStartMigrationJobLRO.java @@ -41,6 +41,7 @@ public static void asyncStartMigrationJobLRO() throws Exception { StartMigrationJobRequest request = StartMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setSkipValidation(true) .build(); OperationFuture future = dataMigrationServiceClient.startMigrationJobOperationCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/SyncStartMigrationJob.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/SyncStartMigrationJob.java index 1bc1b21bd22f..108eaf99747c 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/SyncStartMigrationJob.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/startmigrationjob/SyncStartMigrationJob.java @@ -39,6 +39,7 @@ public static void syncStartMigrationJob() throws Exception { StartMigrationJobRequest request = StartMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setSkipValidation(true) .build(); MigrationJob response = dataMigrationServiceClient.startMigrationJobAsync(request).get(); } diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJob.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJob.java index c8ba62712878..c3fdce795cbb 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJob.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJob.java @@ -19,9 +19,11 @@ // [START datamigration_v1_generated_DataMigrationService_VerifyMigrationJob_async] import com.google.api.core.ApiFuture; import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.MigrationJob; import com.google.cloud.clouddms.v1.MigrationJobName; import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; public class AsyncVerifyMigrationJob { @@ -40,6 +42,8 @@ public static void asyncVerifyMigrationJob() throws Exception { VerifyMigrationJobRequest request = VerifyMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setMigrationJob(MigrationJob.newBuilder().build()) .build(); ApiFuture future = dataMigrationServiceClient.verifyMigrationJobCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJobLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJobLRO.java index 2d1aa864e2af..d0893b22598f 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJobLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/AsyncVerifyMigrationJobLRO.java @@ -23,6 +23,7 @@ import com.google.cloud.clouddms.v1.MigrationJobName; import com.google.cloud.clouddms.v1.OperationMetadata; import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; +import com.google.protobuf.FieldMask; public class AsyncVerifyMigrationJobLRO { @@ -41,6 +42,8 @@ public static void asyncVerifyMigrationJobLRO() throws Exception { VerifyMigrationJobRequest request = VerifyMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setMigrationJob(MigrationJob.newBuilder().build()) .build(); OperationFuture future = dataMigrationServiceClient.verifyMigrationJobOperationCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/SyncVerifyMigrationJob.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/SyncVerifyMigrationJob.java index d1972362a29a..acdc25e04dc1 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/SyncVerifyMigrationJob.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/verifymigrationjob/SyncVerifyMigrationJob.java @@ -21,6 +21,7 @@ import com.google.cloud.clouddms.v1.MigrationJob; import com.google.cloud.clouddms.v1.MigrationJobName; import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; +import com.google.protobuf.FieldMask; public class SyncVerifyMigrationJob { @@ -39,6 +40,8 @@ public static void syncVerifyMigrationJob() throws Exception { VerifyMigrationJobRequest request = VerifyMigrationJobRequest.newBuilder() .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setMigrationJob(MigrationJob.newBuilder().build()) .build(); MigrationJob response = dataMigrationServiceClient.verifyMigrationJobAsync(request).get(); }