@@ -179,8 +179,8 @@ public final OperationsClient getOperationsClient() {
179179 * }</pre>
180180 *
181181 * @param parent Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions
182- * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
183- * ID& gt;/flows/<Flow ID >`.
182+ * for. Format:
183+ * `projects/<ProjectID& gt;/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >`.
184184 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
185185 */
186186 public final ListVersionsPagedResponse listVersions (FlowName parent ) {
@@ -207,8 +207,8 @@ public final ListVersionsPagedResponse listVersions(FlowName parent) {
207207 * }</pre>
208208 *
209209 * @param parent Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions
210- * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
211- * ID& gt;/flows/<Flow ID >`.
210+ * for. Format:
211+ * `projects/<ProjectID& gt;/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >`.
212212 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
213213 */
214214 public final ListVersionsPagedResponse listVersions (String parent ) {
@@ -318,8 +318,7 @@ public final UnaryCallable<ListVersionsRequest, ListVersionsResponse> listVersio
318318 * }</pre>
319319 *
320320 * @param name Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format:
321- * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
322- * ID>/flows/<Flow ID>/versions/<Version ID>`.
321+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
323322 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
324323 */
325324 public final Version getVersion (VersionName name ) {
@@ -343,8 +342,7 @@ public final Version getVersion(VersionName name) {
343342 * }</pre>
344343 *
345344 * @param name Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format:
346- * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
347- * ID>/flows/<Flow ID>/versions/<Version ID>`.
345+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
348346 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
349347 */
350348 public final Version getVersion (String name ) {
@@ -425,8 +423,8 @@ public final UnaryCallable<GetVersionRequest, Version> getVersionCallable() {
425423 * }</pre>
426424 *
427425 * @param parent Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
428- * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: `projects/<Project
429- * ID& gt;/locations/<Location ID >/agents/<Agent ID >/flows/<Flow ID >`.
426+ * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
427+ * `projects/<ProjectID& gt;/locations/<LocationID >/agents/<AgentID >/flows/<FlowID >`.
430428 * @param version Required. The version to create.
431429 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
432430 */
@@ -464,8 +462,8 @@ public final OperationFuture<Version, CreateVersionOperationMetadata> createVers
464462 * }</pre>
465463 *
466464 * @param parent Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
467- * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: `projects/<Project
468- * ID& gt;/locations/<Location ID >/agents/<Agent ID >/flows/<Flow ID >`.
465+ * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
466+ * `projects/<ProjectID& gt;/locations/<LocationID >/agents/<AgentID >/flows/<FlowID >`.
469467 * @param version Required. The version to create.
470468 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
471469 */
@@ -663,8 +661,8 @@ public final UnaryCallable<UpdateVersionRequest, Version> updateVersionCallable(
663661 * }</pre>
664662 *
665663 * @param name Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to
666- * delete. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
667- * ID& gt;/flows/<Flow ID >/versions/<Version ID >`.
664+ * delete. Format:
665+ * `projects/<ProjectID& gt;/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >/versions/<VersionID >`.
668666 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
669667 */
670668 public final void deleteVersion (VersionName name ) {
@@ -688,8 +686,8 @@ public final void deleteVersion(VersionName name) {
688686 * }</pre>
689687 *
690688 * @param name Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to
691- * delete. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
692- * ID& gt;/flows/<Flow ID >/versions/<Version ID >`.
689+ * delete. Format:
690+ * `projects/<ProjectID& gt;/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >/versions/<VersionID >`.
693691 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
694692 */
695693 public final void deleteVersion (String name ) {
@@ -770,8 +768,8 @@ public final UnaryCallable<DeleteVersionRequest, Empty> deleteVersionCallable()
770768 * }</pre>
771769 *
772770 * @param name Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to
773- * draft flow. Format: `projects/<Project ID>/locations/<Location
774- * ID& gt;/agents/<Agent ID >/flows/<Flow ID >/versions/<Version ID >`.
771+ * draft flow. Format:
772+ * `projects/<ProjectID& gt;/locations/<LocationID>/ agents/<AgentID >/flows/<FlowID >/versions/<VersionID >`.
775773 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
776774 */
777775 public final OperationFuture <Empty , Struct > loadVersionAsync (VersionName name ) {
@@ -804,8 +802,8 @@ public final OperationFuture<Empty, Struct> loadVersionAsync(VersionName name) {
804802 * }</pre>
805803 *
806804 * @param name Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to
807- * draft flow. Format: `projects/<Project ID>/locations/<Location
808- * ID& gt;/agents/<Agent ID >/flows/<Flow ID >/versions/<Version ID >`.
805+ * draft flow. Format:
806+ * `projects/<ProjectID& gt;/locations/<LocationID>/ agents/<AgentID >/flows/<FlowID >/versions/<VersionID >`.
809807 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
810808 */
811809 public final OperationFuture <Empty , Struct > loadVersionAsync (String name ) {
@@ -917,6 +915,119 @@ public final UnaryCallable<LoadVersionRequest, Operation> loadVersionCallable()
917915 return stub .loadVersionCallable ();
918916 }
919917
918+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
919+ /**
920+ * Compares the specified base version with target version.
921+ *
922+ * <p>Sample code:
923+ *
924+ * <pre>{@code
925+ * try (VersionsClient versionsClient = VersionsClient.create()) {
926+ * VersionName baseVersion =
927+ * VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
928+ * CompareVersionsResponse response = versionsClient.compareVersions(baseVersion);
929+ * }
930+ * }</pre>
931+ *
932+ * @param baseVersion Required. Name of the base flow version to compare with the target version.
933+ * Use version ID `0` to indicate the draft version of the specified flow.
934+ * <p>Format:
935+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
936+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
937+ */
938+ public final CompareVersionsResponse compareVersions (VersionName baseVersion ) {
939+ CompareVersionsRequest request =
940+ CompareVersionsRequest .newBuilder ()
941+ .setBaseVersion (baseVersion == null ? null : baseVersion .toString ())
942+ .build ();
943+ return compareVersions (request );
944+ }
945+
946+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
947+ /**
948+ * Compares the specified base version with target version.
949+ *
950+ * <p>Sample code:
951+ *
952+ * <pre>{@code
953+ * try (VersionsClient versionsClient = VersionsClient.create()) {
954+ * String baseVersion =
955+ * VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]").toString();
956+ * CompareVersionsResponse response = versionsClient.compareVersions(baseVersion);
957+ * }
958+ * }</pre>
959+ *
960+ * @param baseVersion Required. Name of the base flow version to compare with the target version.
961+ * Use version ID `0` to indicate the draft version of the specified flow.
962+ * <p>Format:
963+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
964+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
965+ */
966+ public final CompareVersionsResponse compareVersions (String baseVersion ) {
967+ CompareVersionsRequest request =
968+ CompareVersionsRequest .newBuilder ().setBaseVersion (baseVersion ).build ();
969+ return compareVersions (request );
970+ }
971+
972+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
973+ /**
974+ * Compares the specified base version with target version.
975+ *
976+ * <p>Sample code:
977+ *
978+ * <pre>{@code
979+ * try (VersionsClient versionsClient = VersionsClient.create()) {
980+ * CompareVersionsRequest request =
981+ * CompareVersionsRequest.newBuilder()
982+ * .setBaseVersion(
983+ * VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
984+ * .toString())
985+ * .setTargetVersion(
986+ * VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
987+ * .toString())
988+ * .setLanguageCode("languageCode-2092349083")
989+ * .build();
990+ * CompareVersionsResponse response = versionsClient.compareVersions(request);
991+ * }
992+ * }</pre>
993+ *
994+ * @param request The request object containing all of the parameters for the API call.
995+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
996+ */
997+ public final CompareVersionsResponse compareVersions (CompareVersionsRequest request ) {
998+ return compareVersionsCallable ().call (request );
999+ }
1000+
1001+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1002+ /**
1003+ * Compares the specified base version with target version.
1004+ *
1005+ * <p>Sample code:
1006+ *
1007+ * <pre>{@code
1008+ * try (VersionsClient versionsClient = VersionsClient.create()) {
1009+ * CompareVersionsRequest request =
1010+ * CompareVersionsRequest.newBuilder()
1011+ * .setBaseVersion(
1012+ * VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
1013+ * .toString())
1014+ * .setTargetVersion(
1015+ * VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
1016+ * .toString())
1017+ * .setLanguageCode("languageCode-2092349083")
1018+ * .build();
1019+ * ApiFuture<CompareVersionsResponse> future =
1020+ * versionsClient.compareVersionsCallable().futureCall(request);
1021+ * // Do something.
1022+ * CompareVersionsResponse response = future.get();
1023+ * }
1024+ * }</pre>
1025+ */
1026+ public final UnaryCallable <CompareVersionsRequest , CompareVersionsResponse >
1027+ compareVersionsCallable () {
1028+ return stub .compareVersionsCallable ();
1029+ }
1030+
9201031 @ Override
9211032 public final void close () {
9221033 stub .close ();
0 commit comments