use of com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest in project java-dialogflow-cx by googleapis.
the class ITSystemTest method updateVersionTest.
@Test
public void updateVersionTest() {
Version version = Version.newBuilder().setName(versionName).setDisplayName(DISPLAY_NAME).setState(Version.State.SUCCEEDED).build();
FieldMask updateMask = FieldMask.newBuilder().build();
UpdateVersionRequest versionRequest = UpdateVersionRequest.newBuilder().setVersion(version).setUpdateMask(updateMask).build();
Version updatedVersion = versionsClient.updateVersion(versionRequest);
assertEquals(Version.State.SUCCEEDED, updatedVersion.getState());
}
Aggregations