google-apis-dialogflow_v3 0.9.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d6e941e36a67b64e1b7e967ed115eb09ec35a6df7211fcada289c2f7f31f4c5
4
- data.tar.gz: 6872d808721b5abadd3cb2db40f05604294c69cb61e2f622285080c221b856ec
3
+ metadata.gz: 9d622b26b861639bea1d14b1c352ebc0c063db1c9634356ac65da72c19a27709
4
+ data.tar.gz: dd3eadbce4fa7d6804f92cbd4104fc207e4c7e6447b27fc7748c9b668349bc28
5
5
  SHA512:
6
- metadata.gz: a060950936d5943de1aa209009c32bd4cc87c658f702c2164e77239a7268990b8a62e5c1543e2ffcf3f02768b10b7384fff8b0a3ab7d9bec0b115a65862253c1
7
- data.tar.gz: 4be29e5eb72c5dca83972a73ecb263cf24432eebc6be4e55330ddc0414d0886d8366e36aac30300b5987524ee5c4f4ef86842306a35750d8f4832f5a714ac023
6
+ metadata.gz: 93a4b416ff7292e09842e2e920b2691d2943f4816cdcfa9e4c0198e8c6e178be37aa3858610dff0240555ec86c35015a9215e49b13e806221581afdfe8189679
7
+ data.tar.gz: 2ea3c3854e85e7aaceb8897399369ca9816eacd8255132377ed0b4d9b89aa3846b4aa911bae982f01258c295519732c44c490ec95d836e5b4b1da8ddb6939be0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-dialogflow_v3
2
2
 
3
+ ### v0.14.0 (2021-06-03)
4
+
5
+ * Regenerated from discovery document revision 20210601
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.13.0 (2021-05-26)
9
+
10
+ * Regenerated from discovery document revision 20210524
11
+
12
+ ### v0.12.0 (2021-05-19)
13
+
14
+ * Regenerated from discovery document revision 20210517
15
+
16
+ ### v0.11.0 (2021-05-12)
17
+
18
+ * Regenerated from discovery document revision 20210510
19
+
20
+ ### v0.10.0 (2021-04-01)
21
+
22
+ * Regenerated from discovery document revision 20210329
23
+
3
24
  ### v0.9.0 (2021-03-23)
4
25
 
5
26
  * Regenerated from discovery document revision 20210320
@@ -93,6 +93,12 @@ module Google
93
93
  # @return [String]
94
94
  attr_accessor :start_flow
95
95
 
96
+ # The list of all languages supported by the agent (except for the `
97
+ # default_language_code`).
98
+ # Corresponds to the JSON property `supportedLanguageCodes`
99
+ # @return [Array<String>]
100
+ attr_accessor :supported_language_codes
101
+
96
102
  # Required. The time zone of the agent from the [time zone database](https://www.
97
103
  # iana.org/time-zones), e.g., America/New_York, Europe/Paris.
98
104
  # Corresponds to the JSON property `timeZone`
@@ -115,6 +121,7 @@ module Google
115
121
  @security_settings = args[:security_settings] if args.key?(:security_settings)
116
122
  @speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings)
117
123
  @start_flow = args[:start_flow] if args.key?(:start_flow)
124
+ @supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes)
118
125
  @time_zone = args[:time_zone] if args.key?(:time_zone)
119
126
  end
120
127
  end
@@ -303,6 +310,45 @@ module Google
303
310
  end
304
311
  end
305
312
 
313
+ # Represents a result from running a test case in an agent environment.
314
+ class GoogleCloudDialogflowCxV3ContinuousTestResult
315
+ include Google::Apis::Core::Hashable
316
+
317
+ # The resource name for the continuous test result. Format: `projects//locations/
318
+ # /agents//environments//continuousTestResults/`.
319
+ # Corresponds to the JSON property `name`
320
+ # @return [String]
321
+ attr_accessor :name
322
+
323
+ # The result of this continuous test run, i.e. whether all the tests in this
324
+ # continuous test run pass or not.
325
+ # Corresponds to the JSON property `result`
326
+ # @return [String]
327
+ attr_accessor :result
328
+
329
+ # Time when the continuous testing run starts.
330
+ # Corresponds to the JSON property `runTime`
331
+ # @return [String]
332
+ attr_accessor :run_time
333
+
334
+ # A list of individual test case results names in this continuous test run.
335
+ # Corresponds to the JSON property `testCaseResults`
336
+ # @return [Array<String>]
337
+ attr_accessor :test_case_results
338
+
339
+ def initialize(**args)
340
+ update!(**args)
341
+ end
342
+
343
+ # Update properties of this object
344
+ def update!(**args)
345
+ @name = args[:name] if args.key?(:name)
346
+ @result = args[:result] if args.key?(:result)
347
+ @run_time = args[:run_time] if args.key?(:run_time)
348
+ @test_case_results = args[:test_case_results] if args.key?(:test_case_results)
349
+ end
350
+ end
351
+
306
352
  # One interaction between a human and virtual agent. The human provides some
307
353
  # input and the virtual agent provides a response.
308
354
  class GoogleCloudDialogflowCxV3ConversationTurn
@@ -333,6 +379,12 @@ module Google
333
379
  class GoogleCloudDialogflowCxV3ConversationTurnUserInput
334
380
  include Google::Apis::Core::Hashable
335
381
 
382
+ # Whether sentiment analysis is enabled.
383
+ # Corresponds to the JSON property `enableSentimentAnalysis`
384
+ # @return [Boolean]
385
+ attr_accessor :enable_sentiment_analysis
386
+ alias_method :enable_sentiment_analysis?, :enable_sentiment_analysis
387
+
336
388
  # Parameters that need to be injected into the conversation during intent
337
389
  # detection.
338
390
  # Corresponds to the JSON property `injectedParameters`
@@ -360,6 +412,7 @@ module Google
360
412
 
361
413
  # Update properties of this object
362
414
  def update!(**args)
415
+ @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
363
416
  @injected_parameters = args[:injected_parameters] if args.key?(:injected_parameters)
364
417
  @input = args[:input] if args.key?(:input)
365
418
  @is_webhook_enabled = args[:is_webhook_enabled] if args.key?(:is_webhook_enabled)
@@ -1166,6 +1219,12 @@ module Google
1166
1219
  # @return [String]
1167
1220
  attr_accessor :agent_uri
1168
1221
 
1222
+ # Optional. Environment name. If not set, draft environment is assumed. Format: `
1223
+ # projects//locations//agents//environments/`.
1224
+ # Corresponds to the JSON property `environment`
1225
+ # @return [String]
1226
+ attr_accessor :environment
1227
+
1169
1228
  def initialize(**args)
1170
1229
  update!(**args)
1171
1230
  end
@@ -1173,6 +1232,7 @@ module Google
1173
1232
  # Update properties of this object
1174
1233
  def update!(**args)
1175
1234
  @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
1235
+ @environment = args[:environment] if args.key?(:environment)
1176
1236
  end
1177
1237
  end
1178
1238
 
@@ -1203,6 +1263,61 @@ module Google
1203
1263
  end
1204
1264
  end
1205
1265
 
1266
+ # The request message for Flows.ExportFlow.
1267
+ class GoogleCloudDialogflowCxV3ExportFlowRequest
1268
+ include Google::Apis::Core::Hashable
1269
+
1270
+ # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
1271
+ # URI to export the flow to. The format of this URI must be `gs:///`. If left
1272
+ # unspecified, the serialized flow is returned inline.
1273
+ # Corresponds to the JSON property `flowUri`
1274
+ # @return [String]
1275
+ attr_accessor :flow_uri
1276
+
1277
+ # Optional. Whether to export flows referenced by the specified flow.
1278
+ # Corresponds to the JSON property `includeReferencedFlows`
1279
+ # @return [Boolean]
1280
+ attr_accessor :include_referenced_flows
1281
+ alias_method :include_referenced_flows?, :include_referenced_flows
1282
+
1283
+ def initialize(**args)
1284
+ update!(**args)
1285
+ end
1286
+
1287
+ # Update properties of this object
1288
+ def update!(**args)
1289
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
1290
+ @include_referenced_flows = args[:include_referenced_flows] if args.key?(:include_referenced_flows)
1291
+ end
1292
+ end
1293
+
1294
+ # The response message for Flows.ExportFlow.
1295
+ class GoogleCloudDialogflowCxV3ExportFlowResponse
1296
+ include Google::Apis::Core::Hashable
1297
+
1298
+ # Uncompressed raw byte content for flow.
1299
+ # Corresponds to the JSON property `flowContent`
1300
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1301
+ # @return [String]
1302
+ attr_accessor :flow_content
1303
+
1304
+ # The URI to a file containing the exported flow. This field is populated only
1305
+ # if `flow_uri` is specified in ExportFlowRequest.
1306
+ # Corresponds to the JSON property `flowUri`
1307
+ # @return [String]
1308
+ attr_accessor :flow_uri
1309
+
1310
+ def initialize(**args)
1311
+ update!(**args)
1312
+ end
1313
+
1314
+ # Update properties of this object
1315
+ def update!(**args)
1316
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
1317
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
1318
+ end
1319
+ end
1320
+
1206
1321
  # Metadata returned for the TestCases.ExportTestCases long running operation.
1207
1322
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
1208
1323
  include Google::Apis::Core::Hashable
@@ -1327,6 +1442,15 @@ module Google
1327
1442
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings]
1328
1443
  attr_accessor :nlu_settings
1329
1444
 
1445
+ # A flow's transition route group serve two purposes: * They are responsible for
1446
+ # matching the user's first utterances in the flow. * They are inherited by
1447
+ # every page's transition route groups. Transition route groups defined in the
1448
+ # page have higher priority than those defined in the flow. Format:`projects//
1449
+ # locations//agents//flows//transitionRouteGroups/`.
1450
+ # Corresponds to the JSON property `transitionRouteGroups`
1451
+ # @return [Array<String>]
1452
+ attr_accessor :transition_route_groups
1453
+
1330
1454
  # A flow's transition routes serve two purposes: * They are responsible for
1331
1455
  # matching the user's first utterances in the flow. * They are inherited by
1332
1456
  # every page's transition routes and can support use cases such as the user
@@ -1351,6 +1475,7 @@ module Google
1351
1475
  @event_handlers = args[:event_handlers] if args.key?(:event_handlers)
1352
1476
  @name = args[:name] if args.key?(:name)
1353
1477
  @nlu_settings = args[:nlu_settings] if args.key?(:nlu_settings)
1478
+ @transition_route_groups = args[:transition_route_groups] if args.key?(:transition_route_groups)
1354
1479
  @transition_routes = args[:transition_routes] if args.key?(:transition_routes)
1355
1480
  end
1356
1481
  end
@@ -1822,6 +1947,59 @@ module Google
1822
1947
  end
1823
1948
  end
1824
1949
 
1950
+ # The request message for Flows.ImportFlow.
1951
+ class GoogleCloudDialogflowCxV3ImportFlowRequest
1952
+ include Google::Apis::Core::Hashable
1953
+
1954
+ # Uncompressed raw byte content for flow.
1955
+ # Corresponds to the JSON property `flowContent`
1956
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1957
+ # @return [String]
1958
+ attr_accessor :flow_content
1959
+
1960
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
1961
+ # import flow from. The format of this URI must be `gs:///`.
1962
+ # Corresponds to the JSON property `flowUri`
1963
+ # @return [String]
1964
+ attr_accessor :flow_uri
1965
+
1966
+ # Flow import mode. If not specified, `KEEP` is assumed.
1967
+ # Corresponds to the JSON property `importOption`
1968
+ # @return [String]
1969
+ attr_accessor :import_option
1970
+
1971
+ def initialize(**args)
1972
+ update!(**args)
1973
+ end
1974
+
1975
+ # Update properties of this object
1976
+ def update!(**args)
1977
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
1978
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
1979
+ @import_option = args[:import_option] if args.key?(:import_option)
1980
+ end
1981
+ end
1982
+
1983
+ # The response message for Flows.ImportFlow.
1984
+ class GoogleCloudDialogflowCxV3ImportFlowResponse
1985
+ include Google::Apis::Core::Hashable
1986
+
1987
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
1988
+ # flows/`.
1989
+ # Corresponds to the JSON property `flow`
1990
+ # @return [String]
1991
+ attr_accessor :flow
1992
+
1993
+ def initialize(**args)
1994
+ update!(**args)
1995
+ end
1996
+
1997
+ # Update properties of this object
1998
+ def update!(**args)
1999
+ @flow = args[:flow] if args.key?(:flow)
2000
+ end
2001
+ end
2002
+
1825
2003
  # Metadata returned for the TestCases.ImportTestCases long running operation.
1826
2004
  class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
1827
2005
  include Google::Apis::Core::Hashable
@@ -1972,8 +2150,8 @@ module Google
1972
2150
  class GoogleCloudDialogflowCxV3Intent
1973
2151
  include Google::Apis::Core::Hashable
1974
2152
 
1975
- # Optional. Human readable description for better understanding an intent like
1976
- # its scope, content, result etc. Maximum character limit: 140 characters.
2153
+ # Human readable description for better understanding an intent like its scope,
2154
+ # content, result etc. Maximum character limit: 140 characters.
1977
2155
  # Corresponds to the JSON property `description`
1978
2156
  # @return [String]
1979
2157
  attr_accessor :description
@@ -1993,14 +2171,14 @@ module Google
1993
2171
  attr_accessor :is_fallback
1994
2172
  alias_method :is_fallback?, :is_fallback
1995
2173
 
1996
- # Optional. The key/value metadata to label an intent. Labels can contain
1997
- # lowercase letters, digits and the symbols '-' and '_'. International
1998
- # characters are allowed, including letters from unicase alphabets. Keys must
1999
- # start with a letter. Keys and values can be no longer than 63 characters and
2000
- # no more than 128 bytes. Prefix "sys." is reserved for Dialogflow defined
2001
- # labels. Currently allowed Dialogflow defined labels include: * sys.head * sys.
2002
- # contextual The above labels do not require value. "sys.head" means the intent
2003
- # is a head intent. "sys.contextual" means the intent is a contextual intent.
2174
+ # The key/value metadata to label an intent. Labels can contain lowercase
2175
+ # letters, digits and the symbols '-' and '_'. International characters are
2176
+ # allowed, including letters from unicase alphabets. Keys must start with a
2177
+ # letter. Keys and values can be no longer than 63 characters and no more than
2178
+ # 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently
2179
+ # allowed Dialogflow defined labels include: * sys.head * sys.contextual The
2180
+ # above labels do not require value. "sys.head" means the intent is a head
2181
+ # intent. "sys.contextual" means the intent is a contextual intent.
2004
2182
  # Corresponds to the JSON property `labels`
2005
2183
  # @return [Hash<String,String>]
2006
2184
  attr_accessor :labels
@@ -2262,6 +2440,32 @@ module Google
2262
2440
  end
2263
2441
  end
2264
2442
 
2443
+ # The response message for Environments.ListTestCaseResults.
2444
+ class GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse
2445
+ include Google::Apis::Core::Hashable
2446
+
2447
+ # The list of continuous test results.
2448
+ # Corresponds to the JSON property `continuousTestResults`
2449
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ContinuousTestResult>]
2450
+ attr_accessor :continuous_test_results
2451
+
2452
+ # Token to retrieve the next page of results, or empty if there are no more
2453
+ # results in the list.
2454
+ # Corresponds to the JSON property `nextPageToken`
2455
+ # @return [String]
2456
+ attr_accessor :next_page_token
2457
+
2458
+ def initialize(**args)
2459
+ update!(**args)
2460
+ end
2461
+
2462
+ # Update properties of this object
2463
+ def update!(**args)
2464
+ @continuous_test_results = args[:continuous_test_results] if args.key?(:continuous_test_results)
2465
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2466
+ end
2467
+ end
2468
+
2265
2469
  # The response message for EntityTypes.ListEntityTypes.
2266
2470
  class GoogleCloudDialogflowCxV3ListEntityTypesResponse
2267
2471
  include Google::Apis::Core::Hashable
@@ -2620,8 +2824,8 @@ module Google
2620
2824
  class GoogleCloudDialogflowCxV3LoadVersionRequest
2621
2825
  include Google::Apis::Core::Hashable
2622
2826
 
2623
- # This field is used to prevent accidental overwrite of other agent resources in
2624
- # the draft version, which can potentially impact other flow's behavior. If `
2827
+ # This field is used to prevent accidental overwrite of other agent resources,
2828
+ # which can potentially impact other flow's behavior. If `
2625
2829
  # allow_override_agent_resources` is false, conflicted agent-level resources
2626
2830
  # will not be overridden (i.e. intents, entities, webhooks).
2627
2831
  # Corresponds to the JSON property `allowOverrideAgentResources`
@@ -3158,6 +3362,16 @@ module Google
3158
3362
  attr_accessor :analyze_query_text_sentiment
3159
3363
  alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
3160
3364
 
3365
+ # The unique identifier of the page to override the current page in the session.
3366
+ # Format: `projects//locations//agents//flows//pages/`. If `current_page` is
3367
+ # specified, the previous state of the session will be ignored by Dialogflow,
3368
+ # including the previous page and the previous session parameters. In most cases,
3369
+ # current_page and parameters should be configured together to direct a session
3370
+ # to a specific state.
3371
+ # Corresponds to the JSON property `currentPage`
3372
+ # @return [String]
3373
+ attr_accessor :current_page
3374
+
3161
3375
  # Whether to disable webhook calls for this request.
3162
3376
  # Corresponds to the JSON property `disableWebhook`
3163
3377
  # @return [Boolean]
@@ -3166,28 +3380,32 @@ module Google
3166
3380
 
3167
3381
  # An object that represents a latitude/longitude pair. This is expressed as a
3168
3382
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
3169
- # specified otherwise, this must conform to the WGS84 standard. Values must be
3170
- # within normalized ranges.
3383
+ # specified otherwise, this object must conform to the WGS84 standard. Values
3384
+ # must be within normalized ranges.
3171
3385
  # Corresponds to the JSON property `geoLocation`
3172
3386
  # @return [Google::Apis::DialogflowV3::GoogleTypeLatLng]
3173
3387
  attr_accessor :geo_location
3174
3388
 
3175
3389
  # Additional parameters to be put into session parameters. To remove a parameter
3176
3390
  # from the session, clients should explicitly set the parameter value to null.
3177
- # Depending on your protocol or client library language, this is a map,
3178
- # associative array, symbol table, dictionary, or JSON object composed of a
3179
- # collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value:
3180
- # parameter name - MapValue type: - If parameter's entity type is a composite
3181
- # entity: map - Else: depending on parameter value type, could be one of string,
3182
- # number, boolean, null, list or map - MapValue value: - If parameter's entity
3183
- # type is a composite entity: map from composite entity property names to
3184
- # property values - Else: parameter value
3391
+ # You can reference the session parameters in the agent with the following
3392
+ # format: $session.params.parameter-id. Depending on your protocol or client
3393
+ # library language, this is a map, associative array, symbol table, dictionary,
3394
+ # or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey
3395
+ # type: string - MapKey value: parameter name - MapValue type: - If parameter's
3396
+ # entity type is a composite entity: map - Else: depending on parameter value
3397
+ # type, could be one of string, number, boolean, null, list or map - MapValue
3398
+ # value: - If parameter's entity type is a composite entity: map from composite
3399
+ # entity property names to property values - Else: parameter value
3185
3400
  # Corresponds to the JSON property `parameters`
3186
3401
  # @return [Hash<String,Object>]
3187
3402
  attr_accessor :parameters
3188
3403
 
3189
3404
  # This field can be used to pass custom data into the webhook associated with
3190
- # the agent. Arbitrary JSON objects are supported.
3405
+ # the agent. Arbitrary JSON objects are supported. Some integrations that query
3406
+ # a Dialogflow agent may provide additional information in the payload. In
3407
+ # particular, for the Dialogflow Phone Gateway integration, this field has the
3408
+ # form: ``` ` "telephony": ` "caller_id": "+18558363987" ` ` ```
3191
3409
  # Corresponds to the JSON property `payload`
3192
3410
  # @return [Hash<String,Object>]
3193
3411
  attr_accessor :payload
@@ -3225,6 +3443,7 @@ module Google
3225
3443
  # Update properties of this object
3226
3444
  def update!(**args)
3227
3445
  @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
3446
+ @current_page = args[:current_page] if args.key?(:current_page)
3228
3447
  @disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
3229
3448
  @geo_location = args[:geo_location] if args.key?(:geo_location)
3230
3449
  @parameters = args[:parameters] if args.key?(:parameters)
@@ -3761,6 +3980,58 @@ module Google
3761
3980
  end
3762
3981
  end
3763
3982
 
3983
+ # Metadata returned for the Environments.RunContinuousTest long running
3984
+ # operation.
3985
+ class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
3986
+ include Google::Apis::Core::Hashable
3987
+
3988
+ # The test errors.
3989
+ # Corresponds to the JSON property `errors`
3990
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestError>]
3991
+ attr_accessor :errors
3992
+
3993
+ def initialize(**args)
3994
+ update!(**args)
3995
+ end
3996
+
3997
+ # Update properties of this object
3998
+ def update!(**args)
3999
+ @errors = args[:errors] if args.key?(:errors)
4000
+ end
4001
+ end
4002
+
4003
+ # The request message for Environments.RunContinuousTest.
4004
+ class GoogleCloudDialogflowCxV3RunContinuousTestRequest
4005
+ include Google::Apis::Core::Hashable
4006
+
4007
+ def initialize(**args)
4008
+ update!(**args)
4009
+ end
4010
+
4011
+ # Update properties of this object
4012
+ def update!(**args)
4013
+ end
4014
+ end
4015
+
4016
+ # The response message for Environments.RunContinuousTest.
4017
+ class GoogleCloudDialogflowCxV3RunContinuousTestResponse
4018
+ include Google::Apis::Core::Hashable
4019
+
4020
+ # Represents a result from running a test case in an agent environment.
4021
+ # Corresponds to the JSON property `continuousTestResult`
4022
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ContinuousTestResult]
4023
+ attr_accessor :continuous_test_result
4024
+
4025
+ def initialize(**args)
4026
+ update!(**args)
4027
+ end
4028
+
4029
+ # Update properties of this object
4030
+ def update!(**args)
4031
+ @continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
4032
+ end
4033
+ end
4034
+
3764
4035
  # Metadata returned for the TestCases.RunTestCase long running operation.
3765
4036
  class GoogleCloudDialogflowCxV3RunTestCaseMetadata
3766
4037
  include Google::Apis::Core::Hashable
@@ -3844,8 +4115,8 @@ module Google
3844
4115
  # @return [Array<String>]
3845
4116
  attr_accessor :purge_data_types
3846
4117
 
3847
- # Defines on what data we apply redaction. Note that we don't redact data to
3848
- # which we don't have access, e.g., Stackdriver logs.
4118
+ # Defines the data for which Dialogflow applies redaction. Dialogflow does not
4119
+ # redact data that it does not have access to – for example, Cloud logging.
3849
4120
  # Corresponds to the JSON property `redactionScope`
3850
4121
  # @return [String]
3851
4122
  attr_accessor :redaction_scope
@@ -3855,10 +4126,12 @@ module Google
3855
4126
  # @return [String]
3856
4127
  attr_accessor :redaction_strategy
3857
4128
 
3858
- # Retains the data for the specified number of days. User must Set a value lower
3859
- # than Dialogflow's default 30d TTL. Setting a value higher than that has no
3860
- # effect. A missing value or setting to 0 also means we use Dialogflow's default
3861
- # TTL.
4129
+ # Retains data in interaction logging for the specified number of days. This
4130
+ # does not apply to Cloud logging, which is owned by the user - not Dialogflow.
4131
+ # User must Set a value lower than Dialogflow's default 30d TTL. Setting a value
4132
+ # higher than that has no effect. A missing value or setting to 0 also means we
4133
+ # use Dialogflow's default TTL. Note: Interaction logging is a limited access
4134
+ # feature. Talk to your Google representative to check availability for you.
3862
4135
  # Corresponds to the JSON property `retentionWindowDays`
3863
4136
  # @return [Fixnum]
3864
4137
  attr_accessor :retention_window_days
@@ -4976,6 +5249,12 @@ module Google
4976
5249
  # @return [String]
4977
5250
  attr_accessor :name
4978
5251
 
5252
+ # Represents configuration for a [Service Directory](https://cloud.google.com/
5253
+ # service-directory) service.
5254
+ # Corresponds to the JSON property `serviceDirectory`
5255
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig]
5256
+ attr_accessor :service_directory
5257
+
4979
5258
  # Webhook execution timeout. Execution is considered failed if Dialogflow doesn'
4980
5259
  # t receive a response from webhook at the end of the timeout period. Defaults
4981
5260
  # to 5 seconds, maximum allowed timeout is 30 seconds.
@@ -4993,6 +5272,7 @@ module Google
4993
5272
  @display_name = args[:display_name] if args.key?(:display_name)
4994
5273
  @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
4995
5274
  @name = args[:name] if args.key?(:name)
5275
+ @service_directory = args[:service_directory] if args.key?(:service_directory)
4996
5276
  @timeout = args[:timeout] if args.key?(:timeout)
4997
5277
  end
4998
5278
  end
@@ -5056,6 +5336,11 @@ module Google
5056
5336
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
5057
5337
  attr_accessor :intent_info
5058
5338
 
5339
+ # The language code specified in the original request.
5340
+ # Corresponds to the JSON property `languageCode`
5341
+ # @return [String]
5342
+ attr_accessor :language_code
5343
+
5059
5344
  # The list of rich message responses to present to the user. Webhook can choose
5060
5345
  # to append or replace this list in WebhookResponse.fulfillment_response;
5061
5346
  # Corresponds to the JSON property `messages`
@@ -5082,6 +5367,30 @@ module Google
5082
5367
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo]
5083
5368
  attr_accessor :session_info
5084
5369
 
5370
+ # If natural language text was provided as input, this field will contain a copy
5371
+ # of the text.
5372
+ # Corresponds to the JSON property `text`
5373
+ # @return [String]
5374
+ attr_accessor :text
5375
+
5376
+ # If natural language speech audio was provided as input, this field will
5377
+ # contain the transcript for the audio.
5378
+ # Corresponds to the JSON property `transcript`
5379
+ # @return [String]
5380
+ attr_accessor :transcript
5381
+
5382
+ # If an event was provided as input, this field will contain the name of the
5383
+ # event.
5384
+ # Corresponds to the JSON property `triggerEvent`
5385
+ # @return [String]
5386
+ attr_accessor :trigger_event
5387
+
5388
+ # If an intent was provided as input, this field will contain a copy of the
5389
+ # intent identifier. Format: `projects//locations//agents//intents/`.
5390
+ # Corresponds to the JSON property `triggerIntent`
5391
+ # @return [String]
5392
+ attr_accessor :trigger_intent
5393
+
5085
5394
  def initialize(**args)
5086
5395
  update!(**args)
5087
5396
  end
@@ -5091,11 +5400,16 @@ module Google
5091
5400
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
5092
5401
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
5093
5402
  @intent_info = args[:intent_info] if args.key?(:intent_info)
5403
+ @language_code = args[:language_code] if args.key?(:language_code)
5094
5404
  @messages = args[:messages] if args.key?(:messages)
5095
5405
  @page_info = args[:page_info] if args.key?(:page_info)
5096
5406
  @payload = args[:payload] if args.key?(:payload)
5097
5407
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
5098
5408
  @session_info = args[:session_info] if args.key?(:session_info)
5409
+ @text = args[:text] if args.key?(:text)
5410
+ @transcript = args[:transcript] if args.key?(:transcript)
5411
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
5412
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
5099
5413
  end
5100
5414
  end
5101
5415
 
@@ -5288,6 +5602,35 @@ module Google
5288
5602
  end
5289
5603
  end
5290
5604
 
5605
+ # Represents configuration for a [Service Directory](https://cloud.google.com/
5606
+ # service-directory) service.
5607
+ class GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
5608
+ include Google::Apis::Core::Hashable
5609
+
5610
+ # Represents configuration for a generic web service.
5611
+ # Corresponds to the JSON property `genericWebService`
5612
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService]
5613
+ attr_accessor :generic_web_service
5614
+
5615
+ # Required. The name of [Service Directory](https://cloud.google.com/service-
5616
+ # directory) service. Format: `projects//locations//namespaces//services/`. `
5617
+ # Location ID` of the service directory must be the same as the location of the
5618
+ # agent.
5619
+ # Corresponds to the JSON property `service`
5620
+ # @return [String]
5621
+ attr_accessor :service
5622
+
5623
+ def initialize(**args)
5624
+ update!(**args)
5625
+ end
5626
+
5627
+ # Update properties of this object
5628
+ def update!(**args)
5629
+ @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
5630
+ @service = args[:service] if args.key?(:service)
5631
+ end
5632
+ end
5633
+
5291
5634
  # Represents the natural speech audio to be processed.
5292
5635
  class GoogleCloudDialogflowCxV3beta1AudioInput
5293
5636
  include Google::Apis::Core::Hashable
@@ -5358,6 +5701,45 @@ module Google
5358
5701
  end
5359
5702
  end
5360
5703
 
5704
+ # Represents a result from running a test case in an agent environment.
5705
+ class GoogleCloudDialogflowCxV3beta1ContinuousTestResult
5706
+ include Google::Apis::Core::Hashable
5707
+
5708
+ # The resource name for the continuous test result. Format: `projects//locations/
5709
+ # /agents//environments//continuousTestResults/`.
5710
+ # Corresponds to the JSON property `name`
5711
+ # @return [String]
5712
+ attr_accessor :name
5713
+
5714
+ # The result of this continuous test run, i.e. whether all the tests in this
5715
+ # continuous test run pass or not.
5716
+ # Corresponds to the JSON property `result`
5717
+ # @return [String]
5718
+ attr_accessor :result
5719
+
5720
+ # Time when the continuous testing run starts.
5721
+ # Corresponds to the JSON property `runTime`
5722
+ # @return [String]
5723
+ attr_accessor :run_time
5724
+
5725
+ # A list of individual test case results names in this continuous test run.
5726
+ # Corresponds to the JSON property `testCaseResults`
5727
+ # @return [Array<String>]
5728
+ attr_accessor :test_case_results
5729
+
5730
+ def initialize(**args)
5731
+ update!(**args)
5732
+ end
5733
+
5734
+ # Update properties of this object
5735
+ def update!(**args)
5736
+ @name = args[:name] if args.key?(:name)
5737
+ @result = args[:result] if args.key?(:result)
5738
+ @run_time = args[:run_time] if args.key?(:run_time)
5739
+ @test_case_results = args[:test_case_results] if args.key?(:test_case_results)
5740
+ end
5741
+ end
5742
+
5361
5743
  # One interaction between a human and virtual agent. The human provides some
5362
5744
  # input and the virtual agent provides a response.
5363
5745
  class GoogleCloudDialogflowCxV3beta1ConversationTurn
@@ -5388,6 +5770,12 @@ module Google
5388
5770
  class GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
5389
5771
  include Google::Apis::Core::Hashable
5390
5772
 
5773
+ # Whether sentiment analysis is enabled.
5774
+ # Corresponds to the JSON property `enableSentimentAnalysis`
5775
+ # @return [Boolean]
5776
+ attr_accessor :enable_sentiment_analysis
5777
+ alias_method :enable_sentiment_analysis?, :enable_sentiment_analysis
5778
+
5391
5779
  # Parameters that need to be injected into the conversation during intent
5392
5780
  # detection.
5393
5781
  # Corresponds to the JSON property `injectedParameters`
@@ -5415,6 +5803,7 @@ module Google
5415
5803
 
5416
5804
  # Update properties of this object
5417
5805
  def update!(**args)
5806
+ @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
5418
5807
  @injected_parameters = args[:injected_parameters] if args.key?(:injected_parameters)
5419
5808
  @input = args[:input] if args.key?(:input)
5420
5809
  @is_webhook_enabled = args[:is_webhook_enabled] if args.key?(:is_webhook_enabled)
@@ -5681,6 +6070,33 @@ module Google
5681
6070
  end
5682
6071
  end
5683
6072
 
6073
+ # The response message for Flows.ExportFlow.
6074
+ class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
6075
+ include Google::Apis::Core::Hashable
6076
+
6077
+ # Uncompressed raw byte content for flow.
6078
+ # Corresponds to the JSON property `flowContent`
6079
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6080
+ # @return [String]
6081
+ attr_accessor :flow_content
6082
+
6083
+ # The URI to a file containing the exported flow. This field is populated only
6084
+ # if `flow_uri` is specified in ExportFlowRequest.
6085
+ # Corresponds to the JSON property `flowUri`
6086
+ # @return [String]
6087
+ attr_accessor :flow_uri
6088
+
6089
+ def initialize(**args)
6090
+ update!(**args)
6091
+ end
6092
+
6093
+ # Update properties of this object
6094
+ def update!(**args)
6095
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
6096
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
6097
+ end
6098
+ end
6099
+
5684
6100
  # Metadata returned for the TestCases.ExportTestCases long running operation.
5685
6101
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
5686
6102
  include Google::Apis::Core::Hashable
@@ -6079,6 +6495,26 @@ module Google
6079
6495
  end
6080
6496
  end
6081
6497
 
6498
+ # The response message for Flows.ImportFlow.
6499
+ class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
6500
+ include Google::Apis::Core::Hashable
6501
+
6502
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
6503
+ # flows/`.
6504
+ # Corresponds to the JSON property `flow`
6505
+ # @return [String]
6506
+ attr_accessor :flow
6507
+
6508
+ def initialize(**args)
6509
+ update!(**args)
6510
+ end
6511
+
6512
+ # Update properties of this object
6513
+ def update!(**args)
6514
+ @flow = args[:flow] if args.key?(:flow)
6515
+ end
6516
+ end
6517
+
6082
6518
  # Metadata returned for the TestCases.ImportTestCases long running operation.
6083
6519
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
6084
6520
  include Google::Apis::Core::Hashable
@@ -6202,8 +6638,8 @@ module Google
6202
6638
  class GoogleCloudDialogflowCxV3beta1Intent
6203
6639
  include Google::Apis::Core::Hashable
6204
6640
 
6205
- # Optional. Human readable description for better understanding an intent like
6206
- # its scope, content, result etc. Maximum character limit: 140 characters.
6641
+ # Human readable description for better understanding an intent like its scope,
6642
+ # content, result etc. Maximum character limit: 140 characters.
6207
6643
  # Corresponds to the JSON property `description`
6208
6644
  # @return [String]
6209
6645
  attr_accessor :description
@@ -6223,14 +6659,14 @@ module Google
6223
6659
  attr_accessor :is_fallback
6224
6660
  alias_method :is_fallback?, :is_fallback
6225
6661
 
6226
- # Optional. The key/value metadata to label an intent. Labels can contain
6227
- # lowercase letters, digits and the symbols '-' and '_'. International
6228
- # characters are allowed, including letters from unicase alphabets. Keys must
6229
- # start with a letter. Keys and values can be no longer than 63 characters and
6230
- # no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
6231
- # labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-
6232
- # contextual The above labels do not require value. "sys-head" means the intent
6233
- # is a head intent. "sys-contextual" means the intent is a contextual intent.
6662
+ # The key/value metadata to label an intent. Labels can contain lowercase
6663
+ # letters, digits and the symbols '-' and '_'. International characters are
6664
+ # allowed, including letters from unicase alphabets. Keys must start with a
6665
+ # letter. Keys and values can be no longer than 63 characters and no more than
6666
+ # 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
6667
+ # allowed Dialogflow defined labels include: * sys-head * sys-contextual The
6668
+ # above labels do not require value. "sys-head" means the intent is a head
6669
+ # intent. "sys-contextual" means the intent is a contextual intent.
6234
6670
  # Corresponds to the JSON property `labels`
6235
6671
  # @return [Hash<String,String>]
6236
6672
  attr_accessor :labels
@@ -6989,6 +7425,45 @@ module Google
6989
7425
  end
6990
7426
  end
6991
7427
 
7428
+ # Metadata returned for the Environments.RunContinuousTest long running
7429
+ # operation.
7430
+ class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
7431
+ include Google::Apis::Core::Hashable
7432
+
7433
+ # The test errors.
7434
+ # Corresponds to the JSON property `errors`
7435
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TestError>]
7436
+ attr_accessor :errors
7437
+
7438
+ def initialize(**args)
7439
+ update!(**args)
7440
+ end
7441
+
7442
+ # Update properties of this object
7443
+ def update!(**args)
7444
+ @errors = args[:errors] if args.key?(:errors)
7445
+ end
7446
+ end
7447
+
7448
+ # The response message for Environments.RunContinuousTest.
7449
+ class GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
7450
+ include Google::Apis::Core::Hashable
7451
+
7452
+ # Represents a result from running a test case in an agent environment.
7453
+ # Corresponds to the JSON property `continuousTestResult`
7454
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ContinuousTestResult]
7455
+ attr_accessor :continuous_test_result
7456
+
7457
+ def initialize(**args)
7458
+ update!(**args)
7459
+ end
7460
+
7461
+ # Update properties of this object
7462
+ def update!(**args)
7463
+ @continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
7464
+ end
7465
+ end
7466
+
6992
7467
  # Metadata returned for the TestCases.RunTestCase long running operation.
6993
7468
  class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
6994
7469
  include Google::Apis::Core::Hashable
@@ -7415,6 +7890,11 @@ module Google
7415
7890
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
7416
7891
  attr_accessor :intent_info
7417
7892
 
7893
+ # The language code specified in the original request.
7894
+ # Corresponds to the JSON property `languageCode`
7895
+ # @return [String]
7896
+ attr_accessor :language_code
7897
+
7418
7898
  # The list of rich message responses to present to the user. Webhook can choose
7419
7899
  # to append or replace this list in WebhookResponse.fulfillment_response;
7420
7900
  # Corresponds to the JSON property `messages`
@@ -7441,6 +7921,30 @@ module Google
7441
7921
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1SessionInfo]
7442
7922
  attr_accessor :session_info
7443
7923
 
7924
+ # If natural language text was provided as input, this field will contain a copy
7925
+ # of the text.
7926
+ # Corresponds to the JSON property `text`
7927
+ # @return [String]
7928
+ attr_accessor :text
7929
+
7930
+ # If natural language speech audio was provided as input, this field will
7931
+ # contain the transcript for the audio.
7932
+ # Corresponds to the JSON property `transcript`
7933
+ # @return [String]
7934
+ attr_accessor :transcript
7935
+
7936
+ # If an event was provided as input, this field will contain the name of the
7937
+ # event.
7938
+ # Corresponds to the JSON property `triggerEvent`
7939
+ # @return [String]
7940
+ attr_accessor :trigger_event
7941
+
7942
+ # If an intent was provided as input, this field will contain a copy of the
7943
+ # intent identifier. Format: `projects//locations//agents//intents/`.
7944
+ # Corresponds to the JSON property `triggerIntent`
7945
+ # @return [String]
7946
+ attr_accessor :trigger_intent
7947
+
7444
7948
  def initialize(**args)
7445
7949
  update!(**args)
7446
7950
  end
@@ -7450,11 +7954,16 @@ module Google
7450
7954
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
7451
7955
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
7452
7956
  @intent_info = args[:intent_info] if args.key?(:intent_info)
7957
+ @language_code = args[:language_code] if args.key?(:language_code)
7453
7958
  @messages = args[:messages] if args.key?(:messages)
7454
7959
  @page_info = args[:page_info] if args.key?(:page_info)
7455
7960
  @payload = args[:payload] if args.key?(:payload)
7456
7961
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
7457
7962
  @session_info = args[:session_info] if args.key?(:session_info)
7963
+ @text = args[:text] if args.key?(:text)
7964
+ @transcript = args[:transcript] if args.key?(:transcript)
7965
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
7966
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
7458
7967
  end
7459
7968
  end
7460
7969
 
@@ -9544,6 +10053,13 @@ module Google
9544
10053
  attr_accessor :all_required_params_present
9545
10054
  alias_method :all_required_params_present?, :all_required_params_present
9546
10055
 
10056
+ # Indicates whether the conversational query triggers a cancellation for slot
10057
+ # filling.
10058
+ # Corresponds to the JSON property `cancelsSlotFilling`
10059
+ # @return [Boolean]
10060
+ attr_accessor :cancels_slot_filling
10061
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
10062
+
9547
10063
  # Free-form diagnostic information for the associated detect intent request. The
9548
10064
  # fields of this data can change without notice, so you should not write code
9549
10065
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -9664,6 +10180,7 @@ module Google
9664
10180
  def update!(**args)
9665
10181
  @action = args[:action] if args.key?(:action)
9666
10182
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
10183
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
9667
10184
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
9668
10185
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
9669
10186
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -12491,6 +13008,13 @@ module Google
12491
13008
  attr_accessor :all_required_params_present
12492
13009
  alias_method :all_required_params_present?, :all_required_params_present
12493
13010
 
13011
+ # Indicates whether the conversational query triggers a cancellation for slot
13012
+ # filling.
13013
+ # Corresponds to the JSON property `cancelsSlotFilling`
13014
+ # @return [Boolean]
13015
+ attr_accessor :cancels_slot_filling
13016
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
13017
+
12494
13018
  # Free-form diagnostic information for the associated detect intent request. The
12495
13019
  # fields of this data can change without notice, so you should not write code
12496
13020
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -12616,6 +13140,7 @@ module Google
12616
13140
  def update!(**args)
12617
13141
  @action = args[:action] if args.key?(:action)
12618
13142
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
13143
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
12619
13144
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
12620
13145
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
12621
13146
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -13345,8 +13870,8 @@ module Google
13345
13870
 
13346
13871
  # An object that represents a latitude/longitude pair. This is expressed as a
13347
13872
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
13348
- # specified otherwise, this must conform to the WGS84 standard. Values must be
13349
- # within normalized ranges.
13873
+ # specified otherwise, this object must conform to the WGS84 standard. Values
13874
+ # must be within normalized ranges.
13350
13875
  class GoogleTypeLatLng
13351
13876
  include Google::Apis::Core::Hashable
13352
13877