Search in sources :

Example 1 with GetAgentRequest

use of com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest in project java-dialogflow by googleapis.

the class ITSystemTest method getAgentTest.

@Test
public void getAgentTest() {
    GetAgentRequest request = GetAgentRequest.newBuilder().setParent(PROJECT_NAME.toString()).build();
    Agent actualAgent = agentsClient.getAgent(request);
    assertEquals(PROJECT_NAME.toString(), actualAgent.getParent());
    assertEquals(DISPLAY_NAME, actualAgent.getDisplayName());
    assertEquals(DEFAULT_LANGUAGE_CODE, actualAgent.getDefaultLanguageCode());
    assertEquals(TIME_ZONE, actualAgent.getTimeZone());
    assertEquals(Agent.MatchMode.MATCH_MODE_HYBRID, actualAgent.getMatchMode());
    assertEquals(Agent.ApiVersion.API_VERSION_V2, actualAgent.getApiVersion());
    assertEquals(Agent.Tier.TIER_STANDARD, actualAgent.getTier());
}
Also used : Agent(com.google.cloud.dialogflow.v2.Agent) GetAgentRequest(com.google.cloud.dialogflow.v2.GetAgentRequest) Test(org.junit.Test)

Example 2 with GetAgentRequest

use of com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest in project java-dialogflow-cx by googleapis.

the class ITSystemTest method getAgentTest.

@Test
public void getAgentTest() {
    GetAgentRequest request = GetAgentRequest.newBuilder().setName(agentName).build();
    Agent agent = agentsClient.getAgent(request);
    assertAgentDetails(agent);
}
Also used : Agent(com.google.cloud.dialogflow.cx.v3beta1.Agent) GetAgentRequest(com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 Agent (com.google.cloud.dialogflow.cx.v3beta1.Agent)1 GetAgentRequest (com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest)1 Agent (com.google.cloud.dialogflow.v2.Agent)1 GetAgentRequest (com.google.cloud.dialogflow.v2.GetAgentRequest)1