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

@param name Required. The name of the deployment of which changes are being discarded.
@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