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());
}
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);
}
Aggregations