Search in sources :

Example 11 with AgentsClient

use of com.google.cloud.dialogflow.v2.AgentsClient in project java-dialogflow-cx by googleapis.

the class UpdateIntentTest method tearDown.

@After
public void tearDown() throws IOException {
    stdOut = null;
    System.setOut(null);
    String apiEndpoint = "global-dialogflow.googleapis.com:443";
    String parentPath = "projects/" + PROJECT_ID + "/locations/global";
    AgentsSettings agentsSettings = AgentsSettings.newBuilder().setEndpoint(apiEndpoint).build();
    AgentsClient client = AgentsClient.create(agentsSettings);
    client.deleteAgent(parent);
}
Also used : AgentsSettings(com.google.cloud.dialogflow.cx.v3.AgentsSettings) AgentsClient(com.google.cloud.dialogflow.cx.v3.AgentsClient) After(org.junit.After)

Aggregations

AgentsClient (com.google.cloud.dialogflow.cx.v3.AgentsClient)9 AgentsSettings (com.google.cloud.dialogflow.cx.v3.AgentsSettings)9 Agent (com.google.cloud.dialogflow.cx.v3.Agent)4 Builder (com.google.cloud.dialogflow.cx.v3.Agent.Builder)4 ByteArrayOutputStream (java.io.ByteArrayOutputStream)3 PrintStream (java.io.PrintStream)3 After (org.junit.After)3 Before (org.junit.Before)2 BeforeClass (org.junit.BeforeClass)2 ExportAgentRequest (com.google.cloud.dialogflow.cx.v3.ExportAgentRequest)1 ExportAgentResponse (com.google.cloud.dialogflow.cx.v3.ExportAgentResponse)1 Intent (com.google.cloud.dialogflow.cx.v3.Intent)1 IntentsClient (com.google.cloud.dialogflow.cx.v3.IntentsClient)1 Agent (com.google.cloud.dialogflow.v2.Agent)1 Builder (com.google.cloud.dialogflow.v2.Agent.Builder)1 AgentsClient (com.google.cloud.dialogflow.v2.AgentsClient)1 AgentsSettings (com.google.cloud.dialogflow.v2.AgentsSettings)1 Context (com.google.cloud.dialogflow.v2.Context)1 CreateContextRequest (com.google.cloud.dialogflow.v2.CreateContextRequest)1 CreateEntityTypeRequest (com.google.cloud.dialogflow.v2.CreateEntityTypeRequest)1