Search in sources :

Example 1 with UpdateVersionRequest

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());
}
Also used : Version(com.google.cloud.dialogflow.cx.v3beta1.Version) UpdateVersionRequest(com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest) FieldMask(com.google.protobuf.FieldMask) Test(org.junit.Test)

Aggregations

UpdateVersionRequest (com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest)1 Version (com.google.cloud.dialogflow.cx.v3beta1.Version)1 FieldMask (com.google.protobuf.FieldMask)1 Test (org.junit.Test)1