Search in sources :

Example 1 with UpdateEntityTypeRequest

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

the class ITSystemTest method updateEntityTypeTest.

@Test
public void updateEntityTypeTest() {
    EntityType entityType = EntityType.newBuilder().setName(entityTypesName).setKind(EntityType.Kind.KIND_LIST).setDisplayName(DISPLAY_NAME).setKindValue(2).build();
    UpdateEntityTypeRequest updateEntityTypeRequest = UpdateEntityTypeRequest.newBuilder().setEntityType(entityType).build();
    EntityType response = entityTypesClient.updateEntityType(updateEntityTypeRequest);
    assertEquals(2, response.getKindValue());
}
Also used : EntityType(com.google.cloud.dialogflow.cx.v3beta1.EntityType) UpdateEntityTypeRequest(com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest) Test(org.junit.Test)

Aggregations

EntityType (com.google.cloud.dialogflow.cx.v3beta1.EntityType)1 UpdateEntityTypeRequest (com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest)1 Test (org.junit.Test)1