public final DiscardDeploymentChangesResponse discardDeploymentChanges(
      DiscardDeploymentChangesRequest request) {
    return discardDeploymentChangesCallable().call(request);
  }
Discards the changes in a deployment and reverts the deployment to the last approved deployment
revision. No changes take place if a deployment does not have revisions.

<p>Sample code:

<pre>{@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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
  DiscardDeploymentChangesRequest request =
      DiscardDeploymentChangesRequest.newBuilder()
          .setName(
              DeploymentName.of(
                      "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
                  .toString())
          .build();
  DiscardDeploymentChangesResponse response =
      telcoAutomationClient.discardDeploymentChanges(request);
}
}</pre>

@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
java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java