use of com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest in project java-speech by googleapis.
the class SpeechModelAdaptationBetaTest method tearDown.
@After
public void tearDown() throws Exception {
System.setOut(stdout);
try (AdaptationClient adaptationClient = AdaptationClient.create()) {
// clean up resources
DeleteCustomClassRequest customClassDeleteRequest = DeleteCustomClassRequest.newBuilder().setName(CustomClassName.of(PROJECT_ID, LOCATION, CUSTOM_CLASS_ID).toString()).build();
adaptationClient.deleteCustomClass(customClassDeleteRequest);
// clean up resources
DeletePhraseSetRequest phraseSetDeleteRequest = DeletePhraseSetRequest.newBuilder().setName(PhraseSetName.of(PROJECT_ID, LOCATION, PHRASE_SET_ID).toString()).build();
adaptationClient.deletePhraseSet(phraseSetDeleteRequest);
}
}
Aggregations