use of com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest in project java-dialogflow-cx by googleapis.
the class ITSystemTest method updateTransitionRouteGroupTest.
@Test
public void updateTransitionRouteGroupTest() {
String updatedDisplayName = DISPLAY_NAME + "-" + ID;
TransitionRouteGroup transitionRouteGroup = TransitionRouteGroup.newBuilder().setName(transitionRouteGroupName).setDisplayName(updatedDisplayName).build();
FieldMask updateMask = FieldMask.newBuilder().build();
UpdateTransitionRouteGroupRequest routeGroupRequest = UpdateTransitionRouteGroupRequest.newBuilder().setTransitionRouteGroup(transitionRouteGroup).setUpdateMask(updateMask).build();
TransitionRouteGroup updatedTransitionRouteGroup = transitionRouteGroupsClient.updateTransitionRouteGroup(routeGroupRequest);
assertEquals(updatedDisplayName, updatedTransitionRouteGroup.getDisplayName());
}
Aggregations