Search in sources :

Example 1 with DeleteCustomClassRequest

use of com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest 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);
    }
}
Also used : DeletePhraseSetRequest(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) AdaptationClient(com.google.cloud.speech.v1p1beta1.AdaptationClient) DeleteCustomClassRequest(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) After(org.junit.After)

Aggregations

AdaptationClient (com.google.cloud.speech.v1p1beta1.AdaptationClient)1 DeleteCustomClassRequest (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)1 DeletePhraseSetRequest (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)1 After (org.junit.After)1