@@ -121,6 +121,15 @@ service Versions {
121
121
metadata_type : "google.protobuf.Struct"
122
122
};
123
123
}
124
+
125
+ // Compares the specified base version with target version.
126
+ rpc CompareVersions (CompareVersionsRequest ) returns (CompareVersionsResponse ) {
127
+ option (google.api.http ) = {
128
+ post : "/v3beta1/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions"
129
+ body : "*"
130
+ };
131
+ option (google.api.method_signature ) = "base_version" ;
132
+ }
124
133
}
125
134
126
135
// Metadata associated with the long running operation for
@@ -281,3 +290,50 @@ message LoadVersionRequest {
281
290
// will not be overridden (i.e. intents, entities, webhooks).
282
291
bool allow_override_agent_resources = 2 ;
283
292
}
293
+
294
+ // The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions].
295
+ message CompareVersionsRequest {
296
+ // Required. Name of the base flow version to compare with the target version. Use
297
+ // version ID `0` to indicate the draft version of the specified flow.
298
+ //
299
+ // Format: `projects/<Project ID>/locations/<Location ID>/agents/
300
+ // <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
301
+ string base_version = 1 [
302
+ (google.api.field_behavior ) = REQUIRED ,
303
+ (google.api.resource_reference ) = {
304
+ type : "dialogflow.googleapis.com/Version"
305
+ }
306
+ ];
307
+
308
+ // Required. Name of the target flow version to compare with the
309
+ // base version. Use version ID `0` to indicate the draft version of the
310
+ // specified flow. Format: `projects/<Project ID>/locations/<Location
311
+ // ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
312
+ string target_version = 2 [
313
+ (google.api.field_behavior ) = REQUIRED ,
314
+ (google.api.resource_reference ) = {
315
+ type : "dialogflow.googleapis.com/Version"
316
+ }
317
+ ];
318
+
319
+ // The language to compare the flow versions for.
320
+ //
321
+ // If not specified, the agent's default language is used.
322
+ // [Many
323
+ // languages](https://cloud.google.com/dialogflow/docs/reference/language) are
324
+ // supported. Note: languages must be enabled in the agent before they can be
325
+ // used.
326
+ string language_code = 3 ;
327
+ }
328
+
329
+ // The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions].
330
+ message CompareVersionsResponse {
331
+ // JSON representation of the base version content.
332
+ string base_version_content_json = 1 ;
333
+
334
+ // JSON representation of the target version content.
335
+ string target_version_content_json = 2 ;
336
+
337
+ // The timestamp when the two version compares.
338
+ google.protobuf.Timestamp compare_time = 3 ;
339
+ }
0 commit comments