@@ -47,7 +47,8 @@ service Versions {
4747 "https://www.googleapis.com/auth/cloud-platform,"
4848 "https://www.googleapis.com/auth/dialogflow" ;
4949
50- // Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
50+ // Returns the list of all versions in the specified
51+ // [Flow][google.cloud.dialogflow.cx.v3.Flow].
5152 rpc ListVersions (ListVersionsRequest ) returns (ListVersionsResponse ) {
5253 option (google.api.http ) = {
5354 get : "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions"
@@ -63,15 +64,18 @@ service Versions {
6364 option (google.api.method_signature ) = "name" ;
6465 }
6566
66- // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
67+ // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
68+ // [Flow][google.cloud.dialogflow.cx.v3.Flow].
6769 //
6870 // This method is a [long-running
6971 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
7072 // The returned `Operation` type has the following method-specific fields:
7173 //
72- // - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
74+ // - `metadata`:
75+ // [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
7376 // - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
74- rpc CreateVersion (CreateVersionRequest ) returns (google.longrunning.Operation ) {
77+ rpc CreateVersion (CreateVersionRequest )
78+ returns (google.longrunning.Operation ) {
7579 option (google.api.http ) = {
7680 post : "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions"
7781 body : "version"
@@ -121,17 +125,27 @@ service Versions {
121125 metadata_type : "google.protobuf.Struct"
122126 };
123127 }
128+
129+ // Compares the specified base version with target version.
130+ rpc CompareVersions (CompareVersionsRequest )
131+ returns (CompareVersionsResponse ) {
132+ option (google.api.http ) = {
133+ post : "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions"
134+ body : "*"
135+ };
136+ option (google.api.method_signature ) = "base_version" ;
137+ }
124138}
125139
126140// Metadata associated with the long running operation for
127141// [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion].
128142message CreateVersionOperationMetadata {
129143 // Name of the created version.
130- // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
131- // ID>/ flows/<Flow ID >/versions/<Version ID >`.
144+ // Format:
145+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >/versions/<VersionID >`.
132146 string version = 1 [(google.api.resource_reference ) = {
133- type : "dialogflow.googleapis.com/Version"
134- }];
147+ type : "dialogflow.googleapis.com/Version"
148+ }];
135149}
136150
137151// Represents a version of a flow.
@@ -156,9 +170,10 @@ message Version {
156170 FAILED = 3 ;
157171 }
158172
159- // Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
160- // ID>/flows/<Flow ID>/versions/<Version ID>. Version ID is a self-increasing
161- // number generated by Dialogflow upon version creation.
173+ // Format:
174+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
175+ // Version ID is a self-increasing number generated by Dialogflow upon version
176+ // creation.
162177 string name = 1 ;
163178
164179 // Required. The human-readable name of the version. Limit of 64 characters.
@@ -172,18 +187,20 @@ message Version {
172187 NluSettings nlu_settings = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
173188
174189 // Output only. Create time of the version.
175- google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior ) = OUTPUT_ONLY ];
190+ google.protobuf.Timestamp create_time = 5
191+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
176192
177- // Output only. The state of this version. This field is read-only and cannot be set by
178- // create and update methods.
193+ // Output only. The state of this version. This field is read-only and cannot
194+ // be set by create and update methods.
179195 State state = 6 [(google.api.field_behavior ) = OUTPUT_ONLY ];
180196}
181197
182- // The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
198+ // The request message for
199+ // [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
183200message ListVersionsRequest {
184- // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
185- // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
186- // ID>/ flows/<Flow ID >`.
201+ // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
202+ // versions for. Format:
203+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >`.
187204 string parent = 1 [
188205 (google.api.field_behavior ) = REQUIRED ,
189206 (google.api.resource_reference ) = {
@@ -199,7 +216,8 @@ message ListVersionsRequest {
199216 string page_token = 3 ;
200217}
201218
202- // The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
219+ // The response message for
220+ // [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
203221message ListVersionsResponse {
204222 // A list of versions. There will be a maximum number of items returned based
205223 // on the page_size field in the request. The list may in some cases be empty
@@ -211,11 +229,12 @@ message ListVersionsResponse {
211229 string next_page_token = 2 ;
212230}
213231
214- // The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
232+ // The request message for
233+ // [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
215234message GetVersionRequest {
216235 // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version].
217- // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
218- // ID>/ flows/<Flow ID >/versions/<Version ID >`.
236+ // Format:
237+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >/versions/<VersionID >`.
219238 string name = 1 [
220239 (google.api.field_behavior ) = REQUIRED ,
221240 (google.api.resource_reference ) = {
@@ -224,11 +243,12 @@ message GetVersionRequest {
224243 ];
225244}
226245
227- // The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion].
246+ // The request message for
247+ // [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion].
228248message CreateVersionRequest {
229- // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
230- // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
231- // ID>/ flows/<Flow ID >`.
249+ // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
250+ // [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
251+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >`.
232252 string parent = 1 [
233253 (google.api.field_behavior ) = REQUIRED ,
234254 (google.api.resource_reference ) = {
@@ -240,21 +260,24 @@ message CreateVersionRequest {
240260 Version version = 2 [(google.api.field_behavior ) = REQUIRED ];
241261}
242262
243- // The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
263+ // The request message for
264+ // [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
244265message UpdateVersionRequest {
245266 // Required. The version to update.
246267 Version version = 1 [(google.api.field_behavior ) = REQUIRED ];
247268
248- // Required. The mask to control which fields get updated. Currently only `description`
249- // and `display_name` can be updated.
250- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior ) = REQUIRED ];
269+ // Required. The mask to control which fields get updated. Currently only
270+ // `description` and `display_name` can be updated.
271+ google.protobuf.FieldMask update_mask = 2
272+ [(google.api.field_behavior ) = REQUIRED ];
251273}
252274
253- // The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion].
275+ // The request message for
276+ // [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion].
254277message DeleteVersionRequest {
255- // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
256- // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
257- // ID>/ flows/<Flow ID >/versions/<Version ID >`.
278+ // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
279+ // to delete. Format:
280+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >/versions/<VersionID >`.
258281 string name = 1 [
259282 (google.api.field_behavior ) = REQUIRED ,
260283 (google.api.resource_reference ) = {
@@ -263,11 +286,12 @@ message DeleteVersionRequest {
263286 ];
264287}
265288
266- // The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
289+ // The request message for
290+ // [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
267291message LoadVersionRequest {
268- // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
269- // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
270- // ID>/ flows/<Flow ID >/versions/<Version ID >`.
292+ // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
293+ // to draft flow. Format:
294+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/ flows/<FlowID >/versions/<VersionID >`.
271295 string name = 1 [
272296 (google.api.field_behavior ) = REQUIRED ,
273297 (google.api.resource_reference ) = {
@@ -281,3 +305,52 @@ message LoadVersionRequest {
281305 // will not be overridden (i.e. intents, entities, webhooks).
282306 bool allow_override_agent_resources = 2 ;
283307}
308+
309+ // The request message for
310+ // [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
311+ message CompareVersionsRequest {
312+ // Required. Name of the base flow version to compare with the target version.
313+ // Use version ID `0` to indicate the draft version of the specified flow.
314+ //
315+ // Format:
316+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
317+ string base_version = 1 [
318+ (google.api.field_behavior ) = REQUIRED ,
319+ (google.api.resource_reference ) = {
320+ type : "dialogflow.googleapis.com/Version"
321+ }
322+ ];
323+
324+ // Required. Name of the target flow version to compare with the
325+ // base version. Use version ID `0` to indicate the draft version of the
326+ // specified flow. Format:
327+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
328+ string target_version = 2 [
329+ (google.api.field_behavior ) = REQUIRED ,
330+ (google.api.resource_reference ) = {
331+ type : "dialogflow.googleapis.com/Version"
332+ }
333+ ];
334+
335+ // The language to compare the flow versions for.
336+ //
337+ // If not specified, the agent's default language is used.
338+ // [Many
339+ // languages](https://cloud.google.com/dialogflow/docs/reference/language) are
340+ // supported. Note: languages must be enabled in the agent before they can be
341+ // used.
342+ string language_code = 3 ;
343+ }
344+
345+ // The response message for
346+ // [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
347+ message CompareVersionsResponse {
348+ // JSON representation of the base version content.
349+ string base_version_content_json = 1 ;
350+
351+ // JSON representation of the target version content.
352+ string target_version_content_json = 2 ;
353+
354+ // The timestamp when the two version compares.
355+ google.protobuf.Timestamp compare_time = 3 ;
356+ }
0 commit comments